Open mfhepp opened 10 months ago
It's likely that I will split the project into
nbh
for notebooks (with a set of system-wide environments and the option to use a local environment file) and py4docker
for a generic development environment that uses the environment file from the current working directory (and determines the name of the image from either hashing its content or hashing the realpath of the env.yaml in the PWD or similar), plus a "deployment mode" for the resulting project.The overlap between both is relatively small, and this will make the project much less complex.
The project can be used for multiple purposes, like
The usages differ in many aspects, namely
Currently, the images created are partially overlapping, which may cause problems in the long run.
Hence, it seems better to separate the three usage scenarios:
nbh <envname
). The multiple environment can either be built inside the same image or, likely better, be independent ones.One critical issue is that the identification of the proper image is determined by the image tag on that machine, so we must take care that we do not accidentally start the wrong image.
For script development, we can either use the fully-fledged dev environment or keep the current feature of mounting the
src
directory to inside the container.So basically we would have the following commands:
Now, one key issue is to determine the tag of the image at build and run-time.
Several ideas:
src
in multiple projects)