Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docker compose ability #809

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

swelborn
Copy link
Collaborator

@swelborn swelborn commented Jun 4, 2023

This PR adds a docker compose.

Running the following commands in order will create the stack:

docker compose up --build --force-recreate -d

This creates a "distiller" user with the password "password". I also had to include try/except in create_user.py to avoid container failing if postgres already has "distiller" as user.

You should be able to test this by running from distiller/frontend/distiller

export REACT_APP_API_URL=http://localhost:8000/api/v1
yarn start

Right now the database doesn't start with anything in it except for the normal startup ones (-20, -30, -40...). It would be useful to have at least one fake scan so that scan_worker wouldn't continuously restart. That could be a separate PR.

running the following commands in order will create a test environment:

```bash
TAG=`git log -1 --pretty=%h`
docker compose up --build --force-recreate -d
```

- creates a "distiller" user with the password "password". had to include try/except in create_user.py to avoid container failing if postgres already has "distiller" as user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant