Jelajahi Sumber

Removing last vestiges of the old bad docker image

Kirk Trombley 5 tahun lalu
induk
melakukan
3f4cb6efe2
5 mengubah file dengan 0 tambahan dan 96 penghapusan
  1. 0 3
      .dockerignore
  2. 0 29
      docker/Dockerfile
  3. 0 7
      docker/build.sh
  4. 0 50
      docker/nginx.conf
  5. 0 7
      docker/start-gunicorn-and-nginx.sh

+ 0 - 3
.dockerignore

@@ -1,3 +0,0 @@
-**/.venv/
-**/*.pyc
-**/secrets.sh

+ 0 - 29
docker/Dockerfile

@@ -1,29 +0,0 @@
-FROM nginx
-
-LABEL maintainer="Kirk Trombley <ktrom3894@gmail.com>"
-
-RUN apt update \
- && apt install --no-install-recommends --no-install-suggests -y python3 python3-pip \
- && pip3 install --upgrade pip setuptools
-
-RUN pip3 install gunicorn
-
-WORKDIR /app
-
-EXPOSE 80
-
-STOPSIGNAL SIGTERM
-
-COPY server/requirements.txt ./
-
-RUN pip3 install -r requirements.txt
-
-COPY docker/nginx.conf /etc/nginx/nginx.conf
-
-COPY docker/start-gunicorn-and-nginx.sh .
-
-COPY server/* ./
-
-COPY client/build /usr/share/nginx/html
-
-CMD ./start-gunicorn-and-nginx.sh

+ 0 - 7
docker/build.sh

@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-pushd client
-yarn build
-popd
-sudo docker build -t ggsh:latest -f docker/Dockerfile . 
-sudo docker save ggsh:latest | gzip > docker/ggsh.tgz

+ 0 - 50
docker/nginx.conf

@@ -1,50 +0,0 @@
-user  nginx;
-worker_processes  1;
-
-error_log  /var/log/nginx/error.log warn;
-pid        /var/run/nginx.pid;
-
-events {
-    worker_connections  1024;
-}
-
-http {
-    include       /etc/nginx/mime.types;
-    default_type  application/octet-stream;
-
-    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
-                      '$status $body_bytes_sent "$http_referer" '
-                      '"$http_user_agent" "$http_x_forwarded_for"';
-
-    access_log  /var/log/nginx/access.log  main;
-
-    sendfile        on;
-    #tcp_nopush     on;
-
-    keepalive_timeout  65;
-
-    gzip  on;
-
-    upstream backend {
-        server unix:/app/ggsh.sock;
-    }
-
-    server {
-        listen       80;
-        server_name  localhost;
-
-        location /api {
-            proxy_pass http://backend/;
-        }
-
-        location / {
-            root   /usr/share/nginx/html;
-            try_files $uri $uri/ /index.html?$args;
-        }
-
-        error_page   500 502 503 504  /50x.html;
-        location = /50x.html {
-            root   /usr/share/nginx/html;
-        }
-    }
-}

+ 0 - 7
docker/start-gunicorn-and-nginx.sh

@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-echo "Starting gunicorn on port 8080 on separate process"
-gunicorn --workers=1 --bind=unix:/app/ggsh.sock app:app &
-
-echo "Starting nginx daemon"
-nginx -g "daemon off;"