-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from ua-snap/docker-image-reorganization
Re-organizes the docker images produced and used by the project so that there is a "lean" production image and several helper images for development. With this new arrangement, there are 5 images: - `cpp-dev`, which is the base Ubuntu machine with a variety of general developer tools (text editors, compilers, debuggers) - `dvmdostem-dev`, which is built on top of `cpp-dev` and includes the dependencies for `dvmdostem` as well as a full python environment to support most of the `dvmdostem` scripts. This image does not include any of the source code; it is assumed that a container run from this image will use volumes to share data from the host into the container with the code. - `dvmdostem-build`, which is built from the previous image, **but** the source code is copied into the container. This is intended to serve as a stand-alone build environment that can compile a specific version of the model in a situation where it is not feasible to use volumes for the running container. - `dvmdostem-run`, which is the "lean" production image. This image does not contain compilers or any developer tools. The compiled `dvmdostem` binary is copied into the image as well as all the shared libraries necessary to run it. Python is also copied into the image. - `dvmdostem-mapping-support`, which includes GDAL support for various mapping tasks. As it stands the "lean" `dvmdostem-run` image is ~950MB, which is not great, but smaller than the ~3GB development image. It is likely that the `dvmdosmte-run` image could be optimized with some further work. This also implements a tagging scheme for images. Images are tagged according to the output of `git describe` at the time that the image is built. The user can then specify which tag to start containers from by setting the `V_TAG` variable in the `.env` file; this value is then fed into `docker-compose`.
- Loading branch information
Showing
7 changed files
with
334 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.