Skip to content

Commit

Permalink
refactor(backend): remove docker-compose.yml and reference from the r…
Browse files Browse the repository at this point in the history
…eadme
  • Loading branch information
TobiasKampmann committed Dec 6, 2023
1 parent f8ab7a1 commit d711ec4
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 261 deletions.
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ All commands mentioned in this section are run from the `backend` directory unle

The backend is configured via
[Spring properties](https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config)
that need to be passed on startup, e.g. via command line argument (also see docker-compose.yml).
that need to be passed on startup, e.g. via command line argument.
You need to set:
* the database URL, username and password:
```
Expand Down
87 changes: 0 additions & 87 deletions docker-compose.yml

This file was deleted.

6 changes: 2 additions & 4 deletions generate_local_test_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ helmChart="$root"/kubernetes/preview

backend_config="$root"/website/tests/config/backend_config.json
helm template name-does-not-matter "$helmChart" --show-only templates/pathoplexus-backend-config.yaml | \
awk '/backend_config.json: \|/{getline; print; exit}' - \
> "$backend_config"
yq eval '.data."backend_config.json"' - > "backend_config"
echo "wrote backend config to $backend_config"

website_config="$root"/website/tests/config/website_config.json
helm template name-does-not-matter "$helmChart" --show-only templates/pathoplexus-website-config.yaml | \
awk '/website_config.json: \|/{getline; print; exit}' - \
> "$website_config"
yq eval '.data."website_config.json"' - > "$website_config"
echo "wrote website config to $website_config"
54 changes: 0 additions & 54 deletions kubernetes/preview/keycloak-config.json

This file was deleted.

17 changes: 0 additions & 17 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,6 @@ specified in the `CONFIG_DIR` environment variable:

Check our tests and examples for working config files.

## Start from docker-compose

Make sure you are authenticated for the private pathoplexus docker registry (see [here](../README.md) for a step-by-step guide).

We have a [docker-compose config](../docker-compose.yml) to start the website. For flexibility the docker image name is read from the environment.
To use the `:latest` image, you can just run (from the repository root):

```bash
BACKEND_IMAGE=doesNotMatterHere WEBSITE_IMAGE=ghcr.io/pathoplexus/website:latest docker compose up website
```

To pull the latest version of the image, run:

```bash
docker pull ghcr.io/pathoplexus/website:latest
```

## Logging

The website writes logs to stdout.
Expand Down
32 changes: 0 additions & 32 deletions website/tests/config/database_config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions website/tests/config/docker_runtime_config.json

This file was deleted.

3 changes: 0 additions & 3 deletions website/tests/config/preprocessing_config.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions website/tests/config/reference_genomes.json

This file was deleted.

0 comments on commit d711ec4

Please sign in to comment.