Skip to content
Permalink
Newer
Older
100644 41 lines (24 sloc) 1.61 KB
1
# util
2
3
This repository is intended to be downloaded into a container repository during development for convenience purposes. Since the major mechanisms of developing to the Docker container construction lifecycle are identical across container images, this repository allows for consistency and additional ease of use across all container images.
4
5
## Install
6
7
If you are reading this file in BINSCRIPTS.md, your container project is likely to be util-enabled.
8
9
To use these scripts yourself, issue this command:
10
11
```
Jim Van Fleet
Aug 3, 2016
12
curl "https://github.internet2.edu/raw/docker/util/master/bin/install.sh?token=AAAAETsVKUnOEAMM8TvUUZccPYi13wsnks5Xq46jwA%3D%3D" | bash
13
```
14
15
### common.bash
16
17
The installation process will create a common.bash file. This file should be the central, canonical authority for management of environment variables. While a subprocess may override them, the files in common.bash should be treated as authoritative defaults. Processes (e.g. `docker build`, `bats`, inside `Jenkinsfile`) can read this file and process the results therein.
18
19
You should edit this file to change the image name, and add any other helpful environment variables.
20
21
### Jenkinsfile
22
23
This will also install a Jenkinsfile to your repository, if it doesn't have one. This will ensure that your Jenkins pipeline can leverage these scripts in the way intended. Ensuring the commands that you issue on your laptop match the commands issued by the build pipeline is critical to ensure predictable, reliable results.
24
25
## Use
26
27
28
### Building
29
30
#### build.sh
31
`bin/build.sh `
32
#### destroy.sh
33
#### rebuild.sh
34
35
### Running
36
### rerun.sh
37
### run.sh
38
39
40
### Testing
41
#### test.sh
You can’t perform that action at this time.