-
Notifications
You must be signed in to change notification settings - Fork 2
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 user/group id config to compose to remove need for sudo #38
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this.
cantabular-import/README.md
Outdated
|
||
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 `[email protected]`. Alternatively |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ons part is missed out:
florence login password for `[email protected]`. 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-privileged
make target and changed regularmake start
to 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-train
container starts up successfully (will see calls to/v1/health
in the logs, albeit they will return 404 as the train doesn't have a health endpoint!)