Closed StevenMaude closed 5 months ago
For this updated configuration to work, we need a new Docker image built and published following a merge of opensafely-core/research-template-docker/pull/57.
I tested this by running the dev container tests in research-template-docker.
This edited the test workflow there to use the updated dev image built from https://github.com/opensafely-core/research-template-docker/pull/57 and a dev container JSON configuration as in this PR.
Run: https://github.com/opensafely-core/research-template-docker/actions/runs/9581024301
Once the image is available, I can check that a Codespace created from this branch works as expected, as a final check.
Needs a rebuild and another check following https://github.com/opensafely-core/research-template-docker/pull/59.
I checked this in Codespaces launched from this branch:
postCreate.sh
shows 2024-06-20 10:42:04.839Z: devcontainer process exited with exit code 0
opensafely run run_all
works
See opensafely-core/research-template-docker#32.
In opensafely-core/research-template-docker#57, we moved this configuration to the Docker image.
We can now update the dev container configuration here to use those Docker image files.
Note that
postAttachCommand
now becomes a string, instead of an object; the object format allows for running multiple commands in parallel:https://containers.dev/implementors/json_reference/#formatting-string-vs-array-properties
However, for our use case, this is fine for now as we only run one simple script (that only starts R Studio currently).