Skip to content

Commit

Permalink
Add Colima support to Runner (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd authored Nov 28, 2024
1 parent a0b6a31 commit 1fffecd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 61 deletions.
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/)
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.

0 comments on commit 1fffecd

Please sign in to comment.