From f374aae962d25beeeb05f180e59cdef7c9e3be9b Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 12 Feb 2023 09:51:37 -0500 Subject: remove container stuff --- Containerfile | 7 ------- Makefile | 6 ------ clone-generate-and-serve.sh | 14 -------------- k8s/capotej-site-deployment.yaml | 20 -------------------- k8s/capotej-site-svc.yaml | 10 ---------- nginx.conf | 13 ------------- 6 files changed, 70 deletions(-) delete mode 100644 Containerfile delete mode 100644 Makefile delete mode 100755 clone-generate-and-serve.sh delete mode 100644 k8s/capotej-site-deployment.yaml delete mode 100644 k8s/capotej-site-svc.yaml delete mode 100644 nginx.conf 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 -- cgit v1.2.3