Testing out using a devcontainer to accelerate local dev setup.
- Clone this repository.
- Run
sh .devcontainer/container_dependencies.sh
in the root of this repository to install the pre-requisites to build and run the devcontainer. - The IDE should automatically open and prompt you to reopen the repository in a container, click 'Reopen in container', this may take some time the first time as the container will need to be built.
- You are now developing in the devcontainer.
- Modify .devcontainer/base_image/Dockerfile
- Run
sh .devcontainer/base_image/build_and_push_to_dockerhub.sh
- That will update the base Docker image located at https://hub.docker.com/repository/docker/ministryofjustice/operations-engineering-devcontainer/general
- Secret integration e.g. using 1Password as here https://technical-documentation.data-platform.service.justice.gov.uk/documentation/platform/infrastructure/developing.html#prerequisites