diff options
Diffstat (limited to 'docker/webpull')
-rw-r--r-- | docker/webpull/Dockerfile.nodejs (renamed from docker/webpull/Dockerfile.pug) | 3 | ||||
-rw-r--r-- | docker/webpull/Dockerfile.ruby | 12 | ||||
-rw-r--r-- | docker/webpull/README.md | 17 |
3 files changed, 28 insertions, 4 deletions
diff --git a/docker/webpull/Dockerfile.pug b/docker/webpull/Dockerfile.nodejs index 9600f35..acc7e74 100644 --- a/docker/webpull/Dockerfile.pug +++ b/docker/webpull/Dockerfile.nodejs @@ -1,8 +1,7 @@ FROM node:13.8-buster RUN apt-get update && \ - apt-get install -y git && \ - npm install -g pug-cli jstransformer-markdown-it + apt-get install -y git COPY ./main /srv/httpd WORKDIR /srv diff --git a/docker/webpull/Dockerfile.ruby b/docker/webpull/Dockerfile.ruby new file mode 100644 index 0000000..7578cca --- /dev/null +++ b/docker/webpull/Dockerfile.ruby @@ -0,0 +1,12 @@ +FROM fedora:32 + +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8 +ENV LANGUAGE=en_US.UTF-8 +ENV RUBYOPT --disable-did_you_mean + +RUN dnf install -y git ruby ruby-devel rubygems rubygem-bundler @development-tools redhat-rpm-config gcc-c++ zlib-devel + +COPY ./main /srv/httpd +WORKDIR /srv +CMD ["/srv/httpd"] diff --git a/docker/webpull/README.md b/docker/webpull/README.md index 351d300..5d17d17 100644 --- a/docker/webpull/README.md +++ b/docker/webpull/README.md @@ -2,9 +2,22 @@ Webpull allows you to update your live website without deploying a new docker container but by simply calling an URL -## Pug version +You need to specify a secret token at boot: + +``` +WEBPULL_TOKEN=s3cr3et ./webpull +``` + +## Node.js version + +``` +go build ./main.go +sudo docker build -f ./Dockerfile.nodejs -t superboum/amd64_webpull_pug:v1 . +``` + +## Ruby version ``` go build ./main.go -sudo docker build -f ./Dockerfile.pug -t superboum/amd64_webpull_pug:v1 +sudo docker build -f ./Dockerfile.ruby -t superboum/amd64_webpull_ruby:v1 . ``` |