You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker compose --env-file ./docker-configs/env.dev up
The Dockerfile will need some conditional lines like this:
The env variables INSTALL_MODE ...comes in from the outside environment (file)...
RUN [ "${INSTALL_MODE}" == "environment_file" ] && echo "conda install with env file" || echo "conda install spec file"
The text was updated successfully, but these errors were encountered:
Modify contents of: devcontainer.json, Dockerfile and postCreateCommand.sh
Merge in the existing top-level Dockerfile ingredients with following changes:
WORKDIR: /workspaces/rook (no need to COPY content elsewhere)
Install environment from: spec-file.txt instead of environment.yml - (e.g.: conda env create --file spec-file.txt) - this should be quicker than resolving environment.yml
Instead of line installing WPS, we need:
Clone and install rooki and all dependencies in requirements.txt and requirements_[dev,test].txt
Clone and install roocs-utils and all dependencies in requirements.txt and requirements_[dev,test].txt
Clone and install clisops and all dependencies in requirements.txt and requirements_[dev,test].txt - but comment out roocs dependencies
Clone and install daops and all dependencies in requirements.txt and requirements_[dev,test].txt - but comment out roocs dependencies
Install rook (we are already in the rook repo at this point) and all dependencies in requirements.txt and requirements_[dev,test].txt - but comment out roocs dependencies
Creating a reproducible development environment
We want to create a simple development environment that developers can get up and running with in minutes.
The best option for that is Docker, because:
Which types of environment do we want to support?
We want a system that allows us to toggle various settings in the container that we are building:
include_slurm: True|False
conda_mode: environment_file|spec_file
roocs_mode: pypi|develop
How can we manage this?
It looks like we can use Docker Compose to provide a set of different configurations, e.g.:
https://docs.docker.com/compose/environment-variables/#using-the---env-file--option
Create multiple files, such as:
Usage is:
The Dockerfile will need some conditional lines like this:
The text was updated successfully, but these errors were encountered: