Skip to content

Commit 9b19280

Browse files
committed
Update docker release instructions.
update tagging/push and use of trivy in addition to grype.
1 parent 9424a08 commit 9b19280

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

RELEASE.txt

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,36 +196,49 @@ Roundup release checklist:
196196
17 Push release docker image to dockerhub
197197
17a. install docker
198198
17b. run: (issues, how to release a version e.g. to update alpine for
199-
secuity issues. Should release tag be
200-
roundup-tracker/roundup:2.2.0-1, -2 etc? Then add a tag
201-
roundup-tracker/roundup:2.2.0 that changes and always tags
202-
the latest -X release??)
199+
security issues. Currently thinking that release tag is
200+
rounduptracker/roundup:2.2.0-1, -2 etc? Then add a tag
201+
rounduptracker/roundup:2.2.0 that moves to always tag
202+
the latest -N release??)
203203

204-
docker build -t roundup-tracker/roundup:2.2.0 \
204+
docker build -t rounduptracker/roundup:2.2.0 \
205205
--build-arg="source=pypi" -f scripts/Docker/Dockerfile .
206206

207-
to create the dockerfile. *Change 2.2.0 to current version*
207+
to create the docker image. *Change 2.2.0 to current version*
208208
Always use the exact release tag.
209209
17c. vulnerability scan local image using:
210210

211211
docker run --rm --volume \
212212
/var/run/docker.sock:/var/run/docker.sock \
213-
--name Grype anchore/grype:latest roundup-tracker/roundup:2.2.0
213+
--name Grype anchore/grype:latest rounduptracker/roundup:2.2.0
214214

215215
should report no vulnerabilities (note match version with current
216216
build)
217+
218+
Also can scan (optionally) using trivy:
219+
220+
docker run --rm --volume \
221+
/var/run/docker.sock:/var/run/docker.sock \
222+
--name trivy aquasec/trivy:latest image rounduptracker/roundup:2.2.0
223+
224+
You may need to explicitly update/refresh the scanners with:
225+
"docker pull anchore/grype:latest" and similarly for
226+
aquasec/trivy if used.
217227
17d. test roundup in demo mode:
218228

219229
docker run -it --rm -p 8917:8080 \
220230
-v $PWD/tracker:/usr/src/app/tracker \
221-
roundup-tracker/roundup:2.2.0 demo
222-
17e. push to DockerHub login (login using 'docker login <username>'
223-
first and user must be member of roundup-tracker org with ability
224-
to publish)
231+
rounduptracker/roundup:2.2.0 demo
225232

226-
docker tag roundup-tracker/roundup:2.2.0 roundup-tracker/roundup
227-
docker push roundup-tracker/roundup:2.2.0
228-
docker push roundup-tracker/roundup # update roundup:latest
233+
17e. push to DockerHub login (login using 'docker login <username>'
234+
first and user must be member of rounduptracker org with ability
235+
to publish). Replace -N with the release number (e.g. -1, -2, -3...)
236+
237+
docker tag rounduptracker/roundup:2.2.0 roundup-tracker/roundup
238+
docker tag rounduptracker/roundup:2.2.0 roundup-tracker/roundup:2.2.0-N
239+
docker push rounduptracker/roundup:2.2.0
240+
docker push rounduptracker/roundup:2.2.0-N
241+
docker push rounduptracker/roundup # update roundup:latest
229242

230243
-------------
231244

0 commit comments

Comments
 (0)