...
Code Block |
---|
language | bash |
---|
title | JavaGo |
---|
linenumbers | true |
---|
|
$ ./gradlew :sdks:go:container:docker -Pdocker-repository-root=$REPOSITORY -Pdocker-tag=$TAG --info |
...
Code Block |
---|
language | bash |
---|
title | docker images list |
---|
linenumbers | true |
---|
|
$ 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 |
---|
language | bash |
---|
linenumbers | true |
---|
|
$ 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 |
---|
language | bash |
---|
title | Go |
---|
linenumbers | true |
---|
|
$ ./gradlew :goPostCommit |
Running precommit tests at local.
Code Block |
---|
language | bash |
---|
title | Python |
---|
linenumbers | true |
---|
|
$ ./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 |
---|
language | bash |
---|
title | Python |
---|
linenumbers | true |
---|
|
$ 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 |
---|
language | bash |
---|
title | Java |
---|
linenumbers | true |
---|
|
$ docker push $REPOSITORY/java:$TAG |
Code Block |
---|
language | bash |
---|
title | Go |
---|
linenumbers | true |
---|
|
$ docker push $REPOSITORY/go:$TAG |
Release Images Validation
...