Skip to content

Commit

Permalink
fix: converting takeoff scripts to docker entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramveeraghanta committed May 22, 2024
1 parent e6d626f commit 1c37716
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 260 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions apiserver/bin/docker-entry-migrator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

python manage.py wait_for_db $1

python manage.py migrate $1
File renamed without changes.
8 changes: 0 additions & 8 deletions deploy/coolify/README.md

This file was deleted.

230 changes: 0 additions & 230 deletions deploy/coolify/coolify-docker-compose.yml

This file was deleted.

10 changes: 4 additions & 6 deletions deploy/selfhost/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:
platform: ${DOCKER_PLATFORM:-}
pull_policy: ${PULL_POLICY:-always}
restart: unless-stopped
command: ./bin/takeoff
command: ./bin/docker-entry-api.sh
deploy:
replicas: ${API_REPLICAS:-1}
volumes:
Expand All @@ -101,7 +101,7 @@ services:
platform: ${DOCKER_PLATFORM:-}
pull_policy: ${PULL_POLICY:-always}
restart: unless-stopped
command: ./bin/worker
command: ./bin/docker-entry-worker.sh
volumes:
- logs_worker:/code/plane/logs
depends_on:
Expand All @@ -115,7 +115,7 @@ services:
platform: ${DOCKER_PLATFORM:-}
pull_policy: ${PULL_POLICY:-always}
restart: unless-stopped
command: ./bin/beat
command: ./bin/docker-entry-beat.sh
volumes:
- logs_beat-worker:/code/plane/logs
depends_on:
Expand All @@ -129,9 +129,7 @@ services:
platform: ${DOCKER_PLATFORM:-}
pull_policy: ${PULL_POLICY:-always}
restart: no
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate"
command: ./bin/docker-entry-migrator.sh
volumes:
- logs_migrator:/code/plane/logs
depends_on:
Expand Down
17 changes: 7 additions & 10 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ volumes:
redisdata:
uploads:
pgdata:


services:
plane-redis:
Expand All @@ -16,7 +15,7 @@ services:
- dev_env
volumes:
- redisdata:/data

plane-minio:
image: minio/minio
restart: unless-stopped
Expand All @@ -30,7 +29,7 @@ services:
environment:
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}

plane-db:
image: postgres:15.2-alpine
restart: unless-stopped
Expand Down Expand Up @@ -98,13 +97,13 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/takeoff.local
command: ./bin/docker-entry-api.sh
env_file:
- ./apiserver/.env
depends_on:
- plane-db
- plane-redis

worker:
build:
context: ./apiserver
Expand All @@ -116,7 +115,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/worker
command: ./bin/docker-entry-worker.sh
env_file:
- ./apiserver/.env
depends_on:
Expand All @@ -135,7 +134,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: ./bin/beat
command: ./bin/docker-entry-beat.sh
env_file:
- ./apiserver/.env
depends_on:
Expand All @@ -154,9 +153,7 @@ services:
- dev_env
volumes:
- ./apiserver:/code
command: >
sh -c "python manage.py wait_for_db --settings=plane.settings.local &&
python manage.py migrate --settings=plane.settings.local"
command: ./bin/docker-entry-migrator.sh --settings=plane.settings.local
env_file:
- ./apiserver/.env
depends_on:
Expand Down
10 changes: 4 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
args:
DOCKER_BUILDKIT: 1
restart: always
command: ./bin/takeoff
command: ./bin/docker-entry-api.sh
env_file:
- ./apiserver/.env
depends_on:
Expand All @@ -60,7 +60,7 @@ services:
args:
DOCKER_BUILDKIT: 1
restart: always
command: ./bin/worker
command: ./bin/docker-entry-worker.sh
env_file:
- ./apiserver/.env
depends_on:
Expand All @@ -76,7 +76,7 @@ services:
args:
DOCKER_BUILDKIT: 1
restart: always
command: ./bin/beat
command: ./bin/docker-entry-beat.sh
env_file:
- ./apiserver/.env
depends_on:
Expand All @@ -92,9 +92,7 @@ services:
args:
DOCKER_BUILDKIT: 1
restart: no
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate"
command: ./bin/docker-entry-migrator.sh
env_file:
- ./apiserver/.env
depends_on:
Expand Down

0 comments on commit 1c37716

Please sign in to comment.