Skip to content

Commit

Permalink
🔥 [#408] remove docker-compose-quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed May 31, 2024
1 parent 4549268 commit 696db69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@ jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download docker-compose file
run: wget https://raw.githubusercontent.com/maykinmedia/objects-api/master/docker-compose-quickstart.yml -O docker-compose-qs.yml
- name: Overwrite the docker-compose file to get the "current" one
run: cp docker-compose-quickstart.yml docker-compose-qs.yml
# todo replace branch name with master after the change is merge
run: wget https://raw.githubusercontent.com/maykinmedia/objects-api/feature/merge-docker-composes/docker-compose.yml
- name: Start docker containers
run: docker-compose -f docker-compose-qs.yml up -d
- name: Wait until DB container starts
run: sleep 10
run: docker compose up -d --no-build
- name: Load fixtures
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py loaddata demodata
run: docker compose exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker-compose -f docker-compose-qs.yml exec -T web src/manage.py createsuperuser --username admin --email [email protected] --no-input
run: docker compose exec -T web src/manage.py createsuperuser --username admin --email [email protected] --no-input
- name: Check main page
run: |
curl_status=$(curl -w '%{http_code}' -o /dev/null -s http://localhost:8000/)
Expand Down
19 changes: 0 additions & 19 deletions docker-compose-quickstart.yml

This file was deleted.

9 changes: 4 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
db:
# NOTE: No persistance storage configured.
Expand All @@ -14,14 +12,12 @@ services:
command: ["redis-server", "--appendonly", "yes"]

web:
image: maykinmedia/objects-api:latest
build: &web_build
context: .
environment: &web_env
- DJANGO_SETTINGS_MODULE=objects.conf.docker
- SECRET_KEY=${SECRET_KEY:-1(@f(-6s_u(5fd&1sg^uvu2s(c-9sapw)1era8q&)g)h@cwxxg}
- OBJECTS_SUPERUSER_USERNAME=admin
- OBJECTS_SUPERUSER_PASSWORD=admin
- OBJECTS_SUPERUSER_EMAIL=admin@localhost
- IS_HTTPS=no
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=redis:6379/0
Expand All @@ -48,6 +44,7 @@ services:
- media:/app/media # Shared media volume to get access to saved OAS files

web-init:
image: maykinmedia/objects-api:latest
build: *web_build
environment: *web_env
command: /setup_configuration.sh
Expand All @@ -57,6 +54,7 @@ services:
volumes: *web_volumes

celery:
image: maykinmedia/objects-api:latest
build: *web_build
environment: *web_env
command: /celery_worker.sh
Expand All @@ -66,6 +64,7 @@ services:
volumes: *web_volumes

celery-flower:
image: maykinmedia/objects-api:latest
build: *web_build
environment: *web_env
command: /celery_flower.sh
Expand Down

0 comments on commit 696db69

Please sign in to comment.