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 Colima support to Runner #1552

Merged
merged 4 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,13 @@ run-uwsgi-async: link-development-env
WEB_SERVER_TYPE=uwsgi-async poetry run ./run_app.sh

dev-compose-up:
docker compose -f docker-compose-dev-mac.yml pull eq-questionnaire-launcher
docker compose -f docker-compose-dev-mac.yml pull sds
docker compose -f docker-compose-dev-mac.yml pull cir
docker compose -f docker-compose-dev-mac.yml up -d

dev-compose-up-linux:
docker compose -f docker-compose-dev-linux.yml up -d
docker compose -f docker-compose-dev.yml pull eq-questionnaire-launcher
docker compose -f docker-compose-dev.yml pull sds
docker compose -f docker-compose-dev.yml pull cir
docker compose -f docker-compose-dev.yml up -d

dev-compose-down:
docker compose -f docker-compose-dev-mac.yml down

dev-compose-down-linux:
docker compose -f docker-compose-dev-linux.yml down
docker compose -f docker-compose-dev.yml down

profile:
poetry run python profile_application.py
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,21 @@

## Run with Docker

Install Docker for your system: [https://www.docker.com/](https://www.docker.com/)
Yuyuutsu marked this conversation as resolved.
Show resolved Hide resolved
Install [Docker](https://www.docker.com/) for your system. Make sure that you've installed both docker and docker-compose packages, preferably using Homebrew:

``` shell
brew install docker
brew install docker-compose
```
On MacOS install container runtimes, eg. [Colima](https://github.com/abiosoft/colima):
```shell
brew install colima
```

Make sure Colima is started every time you want to use Docker images:
```shell
colima start
```

To get eq-questionnaire-runner running the following command will build and run the containers

Expand Down Expand Up @@ -141,7 +155,7 @@ Runner requires five supporting services - a questionnaire launcher, a storage b

#### Run supporting services with Docker

To run the app locally, but the supporting services in Docker, run:
To run the app locally, but the supporting services in Docker, make sure you have Docker and Colima installed [from this step](#run-with-docker), then run:

``` shell
make dev-compose-up
Expand All @@ -158,7 +172,7 @@ make dev-compose-up-linux
##### [Questionnaire launcher](https://github.com/ONSDigital/eq-questionnaire-launcher)

``` shell
docker run -e SURVEY_RUNNER_SCHEMA_URL=http://docker.for.mac.host.internal:5000 -e SDS_API_BASE_URL=http://docker.for.mac.host.internal:5003 -e CIR_API_BASE_URL=http://docker.for.mac.host.internal:5004 -it -p 8000:8000 onsdigital/eq-questionnaire-launcher:latest
docker run -e SURVEY_RUNNER_SCHEMA_URL=http://host.docker.internal:5000 -e SDS_API_BASE_URL=http://host.docker.internal:5003 -e CIR_API_BASE_URL=http://host.docker.internal:5004 -it -p 8000:8000 onsdigital/eq-questionnaire-launcher:latest
```

##### [Mock Supplementary data service](https://github.com/ONSDigital/eq-runner-mock-sds)
Expand Down
47 changes: 0 additions & 47 deletions docker-compose-dev-mac.yml

This file was deleted.

File renamed without changes.