| ... | ... | @@ -13,7 +13,7 @@ git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git |
|
|
|
git checkout -t origin/my_branch
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Create the docker image to be used for future ShellB3 builds:
|
|
|
|
2. Create the docker image to be used for future ShellB3 builds (only done once):
|
|
|
|
|
|
|
|
```
|
|
|
|
cd ShellB3/docker_shellb3
|
| ... | ... | @@ -23,21 +23,9 @@ docker build -t shellb3_centos6 . |
|
|
|
3. Create a docker container and build ShellB3:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker run --name shellb3_centos6_build -v /path/to/ShellB3:/host shellb3_centos6 mk_polar2grid bin_dist clean
|
|
|
|
```
|
|
|
|
|
|
|
|
Or the shorter form (needs testing):
|
|
|
|
|
|
|
|
```
|
|
|
|
docker run --rm -w /host/ShellB3 --name shellb3_centos6_build -v /path/to/ShellB3:/host shellb3_centos6 bash shallbethree.sh mk_polar2grid bin_dist clean
|
|
|
|
docker run --rm -w /host/ShellB3 --name shellb3_centos6_build -v /path/to/ShellB3:/host shellb3_centos6 shallbethree.sh mk_polar2grid bin_dist clean
|
|
|
|
```
|
|
|
|
|
|
|
|
Where `/path/to/ShellB3` is the absolute path to the ShellB3 repository you cloned in Step 1. In this example `mk_polar2grid` is the ShellB3 trim being built, this can be changed to whatever you'd like. The `clean` command should be included if you plan to build for multiple operating systems (other docker images) so that the previous build is removed from the working directory. The final tarball generated with be in `/path/to/ShellB3`
|
|
|
|
|
|
|
|
You can also replace `mk_polar2grid bin_dist clean` with any `shallbethree.sh` arguments. Note that each call to `docker run` will create a new docker container that will need to be deleted.
|
|
|
|
|
|
|
|
4. Delete the docker container when complete. Optionally you could include `--rm` in the original docker run command in step 3 to automatically remove the container when it exits:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker rm shellb3_centos6_build
|
|
|
|
``` |
|
|
|
You can also replace `mk_polar2grid bin_dist clean` with any `shallbethree.sh` arguments. Note that each call to `docker run` will create a new docker container that will automatically be deleted with the `--rm` argument. |
|
|
\ No newline at end of file |