| ... | ... | @@ -8,17 +8,23 @@ Build for CentOS 6 Target |
|
|
|
|
|
|
|
1. Clone this repository to the Docker host (your local machine, a server, etc.) and the branch you wish to use:
|
|
|
|
|
|
|
|
git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git
|
|
|
|
git checkout -t origin/my_branch
|
|
|
|
```
|
|
|
|
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:
|
|
|
|
|
|
|
|
cd ShellB3/docker_shellb3
|
|
|
|
docker build -t shellb3_centos6 .
|
|
|
|
```
|
|
|
|
cd ShellB3/docker_shellb3
|
|
|
|
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
|
|
|
|
```
|
|
|
|
docker run --name shellb3_centos6_build -v /path/to/ShellB3:/host shellb3_centos6 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`
|
|
|
|
|
| ... | ... | @@ -26,5 +32,6 @@ You can also replace `mk_polar2grid bin_dist clean` with any `shallbethree.sh` a |
|
|
|
|
|
|
|
4. Delete the docker container when complete:
|
|
|
|
|
|
|
|
docker rm shellb3_centos6_build
|
|
|
|
|
|
|
|
```
|
|
|
|
docker rm shellb3_centos6_build
|
|
|
|
``` |