diff options
Diffstat (limited to '')
-rw-r--r-- | Containerfile | 7 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | clone-generate-and-serve.sh | 14 | ||||
-rw-r--r-- | k8s/capotej-site-deployment.yaml | 20 | ||||
-rw-r--r-- | k8s/capotej-site-svc.yaml | 10 | ||||
-rw-r--r-- | nginx.conf | 13 |
6 files changed, 0 insertions, 70 deletions
diff --git a/Containerfile b/Containerfile deleted file mode 100644 index 71a3c5c..0000000 --- a/Containerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM alpine:3 -RUN apk add --no-cache git hugo nginx -COPY clone-generate-and-serve.sh /bin/clone-generate-and-serve.sh -COPY nginx.conf /etc/nginx/http.d/default.conf -EXPOSE 80 -STOPSIGNAL SIGQUIT -CMD ["/bin/clone-generate-and-serve.sh"] diff --git a/Makefile b/Makefile deleted file mode 100644 index 5871bbb..0000000 --- a/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -build: - podman build -t capotej-site . -run: - podman run -it -p 8181:80 localhost/capotej-site:latest -debug: - podman run -it -p 8181:80 localhost/capotej-site:latest /bin/sh diff --git a/clone-generate-and-serve.sh b/clone-generate-and-serve.sh deleted file mode 100755 index 6031ba4..0000000 --- a/clone-generate-and-serve.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -eux - -git clone https://git.capotej.com/capotej/capotej.com.git - -cd capotej.com || exit 1 - -git submodule init -git submodule update - -hugo -v -d /usr/share/nginx/html - -nginx -g "daemon off;" diff --git a/k8s/capotej-site-deployment.yaml b/k8s/capotej-site-deployment.yaml deleted file mode 100644 index d730cd0..0000000 --- a/k8s/capotej-site-deployment.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: capotej-site -spec: - replicas: 1 - revisionHistoryLimit: 3 - selector: - matchLabels: - app: capotej-site - template: - metadata: - labels: - app: capotej-site - spec: - containers: - - image: localhost/capotej-site:latest - name: capotej-site - ports: - - containerPort: 80
\ No newline at end of file diff --git a/k8s/capotej-site-svc.yaml b/k8s/capotej-site-svc.yaml deleted file mode 100644 index 286cebb..0000000 --- a/k8s/capotej-site-svc.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: capotej-site -spec: - ports: - - port: 80 - targetPort: 80 - selector: - app: capotej-site
\ No newline at end of file diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 257c568..0000000 --- a/nginx.conf +++ /dev/null @@ -1,13 +0,0 @@ -server { - listen 80 default_server; - listen [::]:80 default_server; - - root /usr/share/nginx/html; - - location / { - sendfile on; - tcp_nopush on; - sendfile_max_chunk 1m; - index index.html; - } -}
\ No newline at end of file |