Skip to content

Commit

Permalink
Merge pull request #10 from docker/use-util
Browse files Browse the repository at this point in the history
Using docker/util
  • Loading branch information
Jim Van Fleet committed Jul 27, 2016
2 parents 7566e11 + c8a7677 commit a087b87
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 31 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
bin/build.sh
bin/destroy.sh
bin/install.sh
bin/rebuild.sh
bin/rerun.sh
bin/run.sh
bin/test.sh
34 changes: 34 additions & 0 deletions BINSCRIPTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# util

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.

## Install

To use these scripts on your container image construction project, issue these commands in the root directory of your container project:

```
```

### common.bash

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.

You should edit this file to change the image name, and add any other helpful environment variables.

## Use


### Building

#### build.sh
`bin/build `
#### destroy.sh
#### rebuild.sh

### Running
### rerun.sh
### run.sh


### Testing
#### test.sh
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ node {
stage 'Checkout'

checkout scm

stage 'Acquire util'

sh 'mkdir -p bin'
dir('bin'){
git([ url: "https://github.internet2.edu/docker/util.git",
credentialsId: "jenkins-github-access-token" ])
sh 'ls'
sh 'mv bin/* .'
}

stage 'Base'

Expand Down
6 changes: 0 additions & 6 deletions bin/build.sh

This file was deleted.

6 changes: 0 additions & 6 deletions bin/destroy.sh

This file was deleted.

3 changes: 0 additions & 3 deletions bin/rebuild.sh

This file was deleted.

3 changes: 0 additions & 3 deletions bin/rerun.sh

This file was deleted.

5 changes: 0 additions & 5 deletions bin/retry.sh

This file was deleted.

5 changes: 0 additions & 5 deletions bin/run.sh

This file was deleted.

3 changes: 0 additions & 3 deletions bin/test.sh

This file was deleted.

0 comments on commit a087b87

Please sign in to comment.