Add user/group id config to compose to remove need for sudo#38
Add user/group id config to compose to remove need for sudo#38ChrysmOre wants to merge 4 commits into
Conversation
redhug1
left a comment
There was a problem hiding this comment.
See direct comments in Slack.
This is not working at all well, if at all on MacBook's
fe7c57b to
b1677e1
Compare
b44d36f to
b7704ab
Compare
08db951 to
3524dc1
Compare
|
|
||
| To use the `start-import` helpers scripts or analysis tools you will need | ||
| to set an environment variable called `FLORENCE_PASSWORD` to your local | ||
| florence login password for `florence@magicroundabout.gov.uk`. Alternatively |
There was a problem hiding this comment.
The ons part is missed out:
| florence login password for `florence@magicroundabout.gov.uk`. Alternatively | |
| florence login password for `florence@magicroundabout.ons.gov.uk`. Alternatively |
3524dc1 to
d1c6a36
Compare
|
In the test-docker-compose section the version of go should probably be changed to 1.17 in go.mod. |
There was a problem hiding this comment.
If I try to run the start-import.sh then it gives me this error:
Making request to POST import-api/jobs:{"recipe":"38542eb6-d3a6-4cc4-ba3f-32b25f23223a"}
error posting job to importAPI: error performing request: Post "http://localhost:21800/jobs": EOF
exit status 1
| * Adjust the constant `maxRuns` in `test-compose.go` for the number of times you want the process to run. Each loop of the process may take about 3 minutes. You may also need to adjust `maxContainersInJob` to match the number of containers that are run for the cantabular import process (which may change). | ||
|
|
||
| * First run `./run-cantabular-without-sudo.sh` in its directory and then when all containers running, run `./start-import.sh` in its directory to test that at least one import process completes OK | ||
| * First run `make start` and then when all containers running, run `./start-import.sh` in its directory to test that at least one import process completes OK |
There was a problem hiding this comment.
It took me a few minutes to locate the start-import.sh so I think it would be useful to say that it's in the helpers directory.
What
Added
make-privilegedmake target and changed regularmake startto not use sudo. Removed extraneous scripts and updated references and READMEs to reference make targets and existing scripts instead.Have also added The Train to the compose journey.
How to test
Test changes make sense.
Test existing helpers and analysis journeys still work (
test-docker-compose,start-analysis)Verify
the-traincontainer starts up successfully (will see calls to/v1/healthin the logs, albeit they will return 404 as the train doesn't have a health endpoint!)