Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleJavaGo
linenumberstrue
$ ./gradlew :sdks:go:container:docker -Pdocker-repository-root=$REPOSITORY -Pdocker-tag=$TAG --info

...

Code Block
languagebash
titledocker images list
linenumberstrue
$ docker images
$REPOSITORY/python2.7:$TAG
$REPOSITORY/python3.5:$TAG
$REPOSITORY/python3.6:$TAG
$REPOSITORY/python3.7:$TAG
$REPOSITORY/java:$TAG
$REPOSITORY/go:$TAG

You can set the repository root and tag when building with -Pdocker-repository-root= and -Pdocker-tag= on the gradle command line.

They can be examined by running docker commands:

Code Block
languagebash
linenumberstrue
$ docker image ls
$ docker run --entrypoint bash -it ${USER}-docker-apache.bintray.io/beam$REPOSITORY/python3.5:latest$TAG

Run a test against locally built container

...

Code Block
languagebash
titleGo
linenumberstrue
$ ./gradlew :goPostCommit

Running precommit tests at local.

Code Block
languagebash
titlePython
linenumberstrue
$ ./gradlew :sdks:python:test-suites:portable:py2:preCommitPy2
$ ./gradlew :sdks:python:test-suites:portable:py35:preCommitPy35
$ ./gradlew :sdks:python:test-suites:portable:py35:preCommitPy36
$ ./gradlew :sdks:python:test-suites:portable:py35:preCommitPy37

...

Publishing an image to gcr.io/beam requires permissions in apache-beam-testing project.

This is the command that published an image X:
  $ ./gradlew ... ?

To publish an image Y to a custom repository run this command:

...

Code Block
languagebash
titlePython
linenumberstrue
$ docker push $REPOSITORY/python2.7:$TAG
$ docker push $REPOSITORY/python3.5:$TAG
$ docker push $REPOSITORY/python3.6:$TAG
$ docker push $REPOSITORY/python3.7:$TAG


Code Block
languagebash
titleJava
linenumberstrue
$ docker push $REPOSITORY/java:$TAG


Code Block
languagebash
titleGo
linenumberstrue
$ docker push $REPOSITORY/go:$TAG

Release Images Validation

...