From 46ee71d829173f2610b944120683ecd0d71e352a Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Thu, 1 Sep 2022 16:42:36 -0400 Subject: [PATCH] Remove docker-compose, entrypoint and .env.example --- .env.example | 50 ---------------------------------------------- docker-compose.yml | 36 --------------------------------- entrypoint.sh | 7 ------- 3 files changed, 93 deletions(-) delete mode 100644 .env.example delete mode 100644 docker-compose.yml delete mode 100644 entrypoint.sh diff --git a/.env.example b/.env.example deleted file mode 100644 index d90e8b70..00000000 --- a/.env.example +++ /dev/null @@ -1,50 +0,0 @@ -# This has to be set to any good enough random string. E.g. something that -# `pwgen -s 32 1` would print out. If you want to know more about this go to -# https://docs.djangoproject.com/en/3.2/ref/settings/#secret-key -# (mandatory setting) -SECRET_KEY=put-something-awesomely-random-here - -# A comma-separated list of hostnames/IPs Django should listen to. For a -# production setup this will be something like aura.example.org, for a dev -# setup you might just use the default settings. -# Important: do not put spaces between commas and values! -# (default: 127.0.0.1,localhost) -#ALLOWED_HOSTS= - -# A comma-separated list of URIs where the webclients live that should be able -# to access the steering API. In particular the dashboard. Might not be needed -# in a production setup if steering and dashboard share the same domain. In -# a dev setup the defaults might be just fine. -# Important: do not put spaces between commas and values! -# (default: http://127.0.0.1:8080,http://localhost:8080) -#CORS_ORIGIN_WHITELIST= - -# The database settings. -# if you use a dev environment where django is not running inside a docker -# container, but you use the postgres container for the db and map its port, -# then use localhost as the database hostname -# (default host: postgres) -# (default port: 5432) -# (default name: steering) -# (default user: steering) -# (password is a mandatory setting) -#DATABASE_HOST= -#DATABASE_PORT= -#POSTGRES_DB= -#POSTGRES_USER= -POSTGRES_PASSWORD=change-to-something-secure - -# The timezone of this server. For a list of all available tz database names see -# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones -# (default: Europe/Vienna) -#TIME_ZONE= - -# The language code for the localization of this server. For a list of available -# codes see http://www.i18nguy.com/unicode/language-identifiers.html -# (default: de) -#LANGUAGE_CODE= - -# This should be turned on only for your development environment unless you -# know exactly what you are doing and what the consequences are. -# (default: False) -#DEBUG= diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 52c5a332..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,36 +0,0 @@ -version: '3.8' - -services: - - django: - build: . - command: python manage.py runserver 0.0.0.0:8000 - container_name: django - volumes: - - .:/steering - expose: - - "8000" - ports: - - "8000:8000" - depends_on: - - postgres - environment: - - DEBUG=True - - SECRET_KEY=foo - - POSTGRES_PASSWORD=aura - - postgres: - image: postgres:13.7-bullseye - container_name: steering-postgres - volumes: - - postgres_data:/var/lib/postgresql/data - environment: - - POSTGRES_USER=steering - - POSTGRES_PASSWORD=aura - - POSTGRES_DB=steering - - TZ=Europe/Vienna - expose: - - "5432" - -volumes: - postgres_data: diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index c0948323..00000000 --- a/entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -set -e - -python /tmp/manage.py loaddata /tmp/fixtures/*/*.json -python /tmp/manage.py runserver 0.0.0.0:8000 - -exec "$@" -- GitLab