aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile46
-rw-r--r--Makefile15
-rw-r--r--README.md8
-rw-r--r--conf/build.conf6
4 files changed, 71 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..aa15240
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,46 @@
+FROM alpine:latest
+
+MAINTAINER Joris Vink <joris@coders.se>
+
+RUN apk add --no-cache \
+ curl \
+ libpq \
+ python
+
+RUN set -e && \
+ mkdir -p /var/chroot && \
+ addgroup -g 500 keymgr && \
+ adduser -D -u 500 -h /var/chroot/keymgr -s /sbin/nologin -G keymgr keymgr && \
+ addgroup -g 501 acme && \
+ adduser -D -u 501 -h /var/chroot/acme -s /sbin/nologin -G acme acme && \
+ addgroup -g 502 kore && \
+ adduser -D -u 502 -h /var/chroot/kore -s /sbin/nologin -G kore kore && \
+ apk add --no-cache --virtual .build-deps \
+ musl-dev \
+ linux-headers \
+ bsd-compat-headers \
+ gcc \
+ make \
+ openssl-dev \
+ postgresql-dev \
+ pkgconfig \
+ libcurl \
+ curl-dev \
+ libpq \
+ python-dev && \
+ curl -O https://kore.io/releases/kore-4.1.0.tar.gz && \
+ tar zfvx kore-4.1.0.tar.gz && \
+ cd kore-4.1.0 && \
+ make clean && \
+ make PYTHON=1 ACME=1 CURL=1 PGSQL=1 && \
+ make install && \
+ cd .. && \
+ rm -rf kore-4.1.0* && \
+ apk del .build-deps
+
+COPY entry.sh /
+
+EXPOSE 443 8888
+STOPSIGNAL SIGQUIT
+
+ENTRYPOINT [ "/entry.sh" ]
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bef50b5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+.PHONY: all clean docker-build run
+
+all: build
+
+clean:
+ kodev clean
+
+docker-build:
+ docker build -t clog .
+
+build:
+ kodev build
+
+run:
+ kodev run
diff --git a/README.md b/README.md
index 80b0900..3d39ceb 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
# clog
-A reimplementation of flog, using the kore.io framework.
+An attempt to reimplement flog, using the [kore.io](https://kore.io) framework.
+
+## TODO
+
+* UUIDs in postgres
+* Dockerize
+* Determine how to handle `lib`/dependencies.
diff --git a/conf/build.conf b/conf/build.conf
index c75c9f2..ea5ca5e 100644
--- a/conf/build.conf
+++ b/conf/build.conf
@@ -4,9 +4,9 @@
# Set to yes if you wish to produce a single binary instead
# of a dynamic library. If you set this to yes you must also
# set kore_source together with kore_flavor.
-#single_binary=no
-#kore_source=/home/joris/src/kore
-#kore_flavor=
+# single_binary=yes
+# kore_source=/home/mcvady/working/kore/src
+# kore_flavor=linux
# The flags below are shared between flavors
cflags=-Wall -Wmissing-declarations -Wshadow