diff options
| author | Max Resnick <max@ofmax.li> | 2019-12-23 07:33:04 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2019-12-23 07:33:04 -0800 |
| commit | 3ec61949c43463f7771301b9c4f4265eb15a0487 (patch) | |
| tree | 5a917d75a60884d04c507d326890bf77cb70bd3c | |
| download | grumpy-containers-3ec61949c43463f7771301b9c4f4265eb15a0487.tar.gz | |
initial commit
| -rw-r--r-- | src/base/Dockerfile | 8 | ||||
| -rw-r--r-- | src/base/VERSION | 1 | ||||
| -rw-r--r-- | src/helm-tools/Dockerfile | 8 | ||||
| -rw-r--r-- | src/helm-tools/VERSION | 1 | ||||
| -rw-r--r-- | src/pelican/Dockerfile | 5 | ||||
| -rw-r--r-- | src/pelican/VERSION | 1 | ||||
| -rw-r--r-- | src/static-files/Dockerfile | 3 | ||||
| -rw-r--r-- | src/static-files/VERSION | 1 | ||||
| -rw-r--r-- | src/static-files/conf | 28 |
9 files changed, 56 insertions, 0 deletions
diff --git a/src/base/Dockerfile b/src/base/Dockerfile new file mode 100644 index 0000000..e6f3db5 --- /dev/null +++ b/src/base/Dockerfile @@ -0,0 +1,8 @@ +ARG VERSION=buster-slim +FROM debian:${VERSION} +ENV DEBIAN_FRONTEND=noninteractive +RUN useradd -s /usr/sbin/nologin \ + --create-home \ + --home-dir /opt/app \ + app +WORKDIR /opt/app diff --git a/src/base/VERSION b/src/base/VERSION new file mode 100644 index 0000000..a3dce6c --- /dev/null +++ b/src/base/VERSION @@ -0,0 +1 @@ +v0.0.2 diff --git a/src/helm-tools/Dockerfile b/src/helm-tools/Dockerfile new file mode 100644 index 0000000..348cd6a --- /dev/null +++ b/src/helm-tools/Dockerfile @@ -0,0 +1,8 @@ +FROM registry.gitlab.com/grumps/grumpy-containers/base:v0.0.1 +RUN apt-get update -y \ + && apt-get install -y curl make git \ + && curl -L -o /tmp/hm.tar.gz https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz \ + && tar xvf /tmp/hm.tar.gz -C /tmp \ + && install /tmp/linux-amd64/helm /usr/local/bin/helm \ + && helm init --client-only +USER app diff --git a/src/helm-tools/VERSION b/src/helm-tools/VERSION new file mode 100644 index 0000000..9c2228b --- /dev/null +++ b/src/helm-tools/VERSION @@ -0,0 +1 @@ +v2.14.3 diff --git a/src/pelican/Dockerfile b/src/pelican/Dockerfile new file mode 100644 index 0000000..8a902f4 --- /dev/null +++ b/src/pelican/Dockerfile @@ -0,0 +1,5 @@ +FROM registry.gitlab.com/grumps/grumpy-containers/base:v0.0.1 +RUN apt-get update -y && apt-get install -y python3-pip libsass-dev ruby-sass +RUN pip3 install pelican webassets Pillow markdown cssmin libsass +USER app +WORKDIR /opt/app diff --git a/src/pelican/VERSION b/src/pelican/VERSION new file mode 100644 index 0000000..52cad5e --- /dev/null +++ b/src/pelican/VERSION @@ -0,0 +1 @@ +v4.1.1 diff --git a/src/static-files/Dockerfile b/src/static-files/Dockerfile new file mode 100644 index 0000000..5653b3b --- /dev/null +++ b/src/static-files/Dockerfile @@ -0,0 +1,3 @@ +FROM bitnami/nginx:1.16 + +COPY conf /opt/bitnami/nginx/conf/server_blocks/static-files.conf diff --git a/src/static-files/VERSION b/src/static-files/VERSION new file mode 100644 index 0000000..45c7a58 --- /dev/null +++ b/src/static-files/VERSION @@ -0,0 +1 @@ +v0.0.1 diff --git a/src/static-files/conf b/src/static-files/conf new file mode 100644 index 0000000..7cb0807 --- /dev/null +++ b/src/static-files/conf @@ -0,0 +1,28 @@ +server {
+ listen 8080;
+ client_max_body_size 1M;
+ keepalive_timeout 15;
+ types_hash_max_size 2024;
+ root /app;
+ location = / {
+ # Instead of handling the index, just
+ # rewrite / to /index.html
+ rewrite ^ /index.html;
+ }
+ location / {
+ # Serve a .gz version if it exists
+ gzip_static on;
+ # Try to serve the clean url version first
+ try_files $uri.html $uri/index.html $uri =404;
+ }
+
+ location = /favicon.ico {
+ # This never changes, so don't let it expire
+ expires max;
+ }
+
+ location ^~ /theme {
+ # This content should very rarely, if ever, change
+ expires 1y;
+ }
+}
|