@@ -8,20 +8,22 @@ All the docker-ops functions are available after you install it.
88### In current shell
99If you want to run docker-ops in current shell:
1010``` bash
11- docker_ops::loaded || eval " $( curl http ://archive.ai-traders. com/docker-ops/0.1.0 /docker-ops) "
11+ docker_ops::loaded || eval " $( curl https ://github. com/kudulab/ docker-ops/releases/download/ ${DOCKER_OPS_VERSION} /docker-ops) "
1212```
1313 Do not use it in a script as it would always redownload the file.
1414
1515### In a script
1616
1717If you want to run docker-ops from a script:
1818``` bash
19- if [[ ! -f ./docker-ops ]]; then
20- timeout 2 wget -O docker-ops --quiet http://http.archive.ai-traders.com/docker-ops/0.2.4/docker-ops || { echo " Cannot download docker-ops, ignoring" ; rm -f ./docker-ops; }
21- fi
22- if [[ -f ./docker-ops ]]; then
23- source ./docker-ops
19+ DOCKER_OPS_VERSION=" 2.0.0"
20+ DOCKER_OPS_FILE=" .ops/docker-ops-${DOCKER_OPS_VERSION} "
21+
22+ mkdir -p .ops
23+ if [[ ! -f $DOCKER_OPS_FILE ]]; then
24+ wget --quiet -O $DOCKER_OPS_FILE https://github.com/kudulab/docker-ops/releases/download/${DOCKER_OPS_VERSION} /docker-ops
2425fi
26+ source $DOCKER_OPS_FILE
2527```
2628
2729### Validate that loaded
@@ -44,7 +46,7 @@ At the top of file download supporting docker-ops script:
4446set -e
4547
4648DOCKER_OPS_VERSION=" 2.0.0"
47- DOCKER_OPS_FILE=" .ops/releaser -${DOCKER_OPS_VERSION} "
49+ DOCKER_OPS_FILE=" .ops/docker-ops -${DOCKER_OPS_VERSION} "
4850
4951mkdir -p .ops
5052if [[ ! -f $DOCKER_OPS_FILE ]]; then
@@ -112,17 +114,13 @@ When `image_registry=dockerhub` then image name prefix with registry is skipped.
112114
113115### Lifecycle
1141161 . In a feature branch:
115- * you make changes
116- * and run tests:
117+ * you make changes
118+ * and run tests:
117119 * ` ./tasks itest `
1181201 . You decide that your changes are ready and you:
119- * merge into master branch
120- * run locally:
121- * ` ./tasks set_version ` to set version in CHANGELOG and chart version files to
122- the version from OVersion backend
123- * e.g. ` ./tasks set_version 1.2.3 ` to set version in CHANGELOG and chart version
124- files and in OVersion backend to 1.2.3
125- * push to master onto private git server
121+ * merge into master branch
122+ * run locally:
123+ * ` ./tasks set_version ` to set version in CHANGELOG while bumping patch version
124+ * e.g. ` ./tasks set_version 1.2.3 ` to set version in CHANGELOG
125+ * push to master onto private git server
1261261 . CI server (GoCD) tests and releases.
127-
128- Releaser uses itself, which is treated as true integration test.
0 commit comments