Container development environment documentation
2 unresolved threads
2 unresolved threads
Document the container development workflow which is a way of using containers to do gstlal development on systems that support Singularity.
This is purely a documentation MR. This addresses issue #103 (closed)
Edited by Ron Tapia
Merge request reports
Activity
- doc/source/container_environment.md 0 → 100644
9 ## Creating a writable container 10 11 The base of a development environment is a gstlal container. It is typical to start with the 12 current master build. However, you can use the build tools to overwite the install in the container so the 13 choice of branch in your gstlal repository matters more than the container that you start with. The job of 14 the container is to provide a well-defined set of dependencies. 15 16 ```bash 17 singularity build --sandbox --fix-perms CONTAINER_NAME docker://containers.ligo.org/lscsoft/gstlal:master 18 ``` 19 20 This will creat a directory named CONTAINER_NAME. That directory is a *singularity container*. 21 22 ## Check out gstlal 23 24 In a directory of your choice. It might be good to note here that it is possible (and recommended?) to actually clone the repo in a directory inside the container. Like we have been doing <container_name>/src/. This is nice (in my opinion) to keep things clean so you don't have a bunch of git repos and containers floating around and you can't remember which container is based on which repo
changed this line in version 2 of the diff
- doc/source/container_environment.md 0 → 100644
32 33 ## Develop 34 35 Edit and make changes under your gstlal dir using editors and git outside of the container (or inside if you prefer). 36 37 ## Build a component 38 39 To build a component: 40 41 1. cd to your gstlal directory 42 2. Run your container: 43 ``` 44 singularity run --writable -B $TMPDIR CONTAINER_NAME /bin/bash 45 ``` 46 3. cd to the component directory under your gstlal dir. 47 4. Initialize the build system for your component. You only need to do this once per container per component directory: added 1 commit
- db769dba - Changes to address comments in the discussion + some examples
added 15 commits
Toggle commit listmentioned in issue #103 (closed)
Please register or sign in to reply