kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 30ab464b91ee398187a6c053d7b84988fc6dcd27
parent 749b0884a6e1799968784689a08bc0674d423ce3
Author: Joris Vink <joris@coders.se>
Date:   Thu, 21 May 2015 14:10:00 +0200

Merge pull request #62 from thorduri/docker

Contain the kore.
Diffstat:
.dockerignore | 1+
Dockerfile | 5+++++
Makefile | 6+++++-
docker/Makefile | 14++++++++++++++
docker/app/Dockerfile | 14++++++++++++++
docker/build/Dockerfile | 5+++++
6 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/.dockerignore b/.dockerignore @@ -0,0 +1 @@ +.git diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,5 @@ +FROM kore/build + +WORKDIR /kore +VOLUME ["/kore"] +EXPOSE 443 8888 diff --git a/Makefile b/Makefile @@ -77,4 +77,8 @@ clean: find . -type f -name \*.o -exec rm {} \; rm -f $(KORE) -.PHONY: clean +contain: + docker build -t kore . + docker run -itP --name kore --rm -v ${PWD}/:/kore kore + +.PHONY: clean contain diff --git a/docker/Makefile b/docker/Makefile @@ -0,0 +1,14 @@ +all: build app + +build: + docker build -t kore-build -f build/Dockerfile build/ + docker tag kore-build kore/build + +app: + docker build -t kore-app -f app/Dockerfile app/ + docker tag kore-app kore/app + +clean: + docker rmi -f kore-build kore-app + +.PHONY: all build app clean diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile @@ -0,0 +1,14 @@ +FROM kore/build +MAINTAINER Thordur I. Bjornsson <thorduri@secnorth.net> + +ENV KORE_VERSION 1.2.2 + +WORKDIR /kore + +ADD https://github.com/jorisvink/kore/archive/$KORE_VERSION-release.tar.gz /kore/ +RUN tar -zxf $KORE_VERSION-release.tar.gz && cd kore-$KORE_VERSION-release/ && \ + make clean && make && make install && \ + rm -rf /kore/$KORE_VERSION-release.tar.gz /kore/kore-$KORE_VERSION-release + +EXPOSE 443 8888 +ENTRYPOINT ["kore", "run"] diff --git a/docker/build/Dockerfile b/docker/build/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:jessie +MAINTAINER Thordur I. Bjornsson <thorduri@secnorth.net> + +RUN apt-get update -qq && \ + apt-get -qqy install build-essential clang git libpq-dev libssl-dev libz-dev