Skip to content

Add call to container/{id}/wait #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 3, 2020
Merged

Add call to container/{id}/wait #329

merged 4 commits into from
Apr 3, 2020

Conversation

ry99
Copy link
Contributor

@ry99 ry99 commented Apr 2, 2020

Adds a container.waitOn() function to wait for a container to complete. I did not add an integration test because the integration tests do not seem to work on my dev machine (#303).

@amihaiemil
Copy link
Owner

@ry99 Thank you for your PR. Could you at least add a simple unit tests? See how other unit tests are implemented, it should be very similar :)

Copy link
Owner

@amihaiemil amihaiemil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ry99 also, see 2 comments :)

@amihaiemil amihaiemil self-assigned this Apr 2, 2020
@0crat
Copy link
Collaborator

0crat commented Apr 2, 2020

@amihaiemil/z not enough funds available in the project, can't set budget of job #329, see §21; @amihaiemil/z will get no money on completion; in order to fix that, add funds to the project and assign the job again

@amihaiemil
Copy link
Owner

@rultor try to merge

@rultor
Copy link
Collaborator

rultor commented Apr 3, 2020

@rultor try to merge

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit a6d3667 into amihaiemil:master Apr 3, 2020
@rultor
Copy link
Collaborator

rultor commented Apr 3, 2020

@rultor try to merge

@amihaiemil Done! FYI, the full log is here (took me 2min)

@amihaiemil
Copy link
Owner

@ry99 thanks a lot for the PR!

@amihaiemil
Copy link
Owner

@rultor release it, tag is 0.0.12

@rultor
Copy link
Collaborator

rultor commented Apr 3, 2020

@rultor release it, tag is 0.0.12

@amihaiemil OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Apr 3, 2020

@rultor release it, tag is 0.0.12

@amihaiemil @ry99 Oops, I failed. You can see the full log here (spent 2min)

Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Container.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/TcpDocker.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Docker.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Containers.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/UnexpectedResponseException.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Credentials.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Logs.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Network.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/UnixDocker.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Image.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/IdentityToken.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Networks.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/RegistryConfigAuth.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Version.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/class-use/Volume.html...
Generating /home/r/repo/target/apidocs/com/amihaiemil/docker/package-use.html...
Building index for all the packages and classes...
Generating /home/r/repo/target/apidocs/overview-tree.html...
Generating /home/r/repo/target/apidocs/index-all.html...
Generating /home/r/repo/target/apidocs/deprecated-list.html...
Building index for all classes...
Generating /home/r/repo/target/apidocs/allclasses-frame.html...
Generating /home/r/repo/target/apidocs/allclasses-noframe.html...
Generating /home/r/repo/target/apidocs/index.html...
Generating /home/r/repo/target/apidocs/help-doc.html...
Note: Custom tags that could override future standard tags:  @todo, @checkstyle. To avoid potential overrides, use at least one period character (.) in custom tag names.
Note: Custom tags that were not seen:  @todo, @checkstyle
2 errors
3 warnings
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;34mINFO\u001b[m] \u001b[1;31mBUILD FAILURE\u001b[m
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;34mINFO\u001b[m] Total time:  32.485 s
[\u001b[1;34mINFO\u001b[m] Finished at: 2020-04-03T06:38:49Z
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;31mERROR\u001b[m] Failed to execute goal \u001b[32morg.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar\u001b[m \u001b[1m(attach-javadocs)\u001b[m on project \u001b[36mdocker-java-api\u001b[m: \u001b[1;31mMavenReportException: Error while generating Javadoc: \u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31mExit code: 1 - /home/r/repo/src/main/java/com/amihaiemil/docker/Container.java:166: warning - Tag @see: missing final '>': "<a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerWait">\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m Wait Container</a>."\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m/home/r/repo/src/main/java/com/amihaiemil/docker/LocalDocker.java:46: error: reference not found\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m * via {@link #LocalUnixDocker(HttpClient, String)}.\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m              ^\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m/home/r/repo/src/main/java/com/amihaiemil/docker/LocalDocker.java:54: warning - Tag @link: can't find LocalUnixDocker(HttpClient, String) in com.amihaiemil.docker.LocalDocker\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m/home/r/repo/src/main/java/com/amihaiemil/docker/UnixDocker.java:42: error: reference not found\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m * via {@link #LocalUnixDocker(HttpClient, String)}.\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m              ^\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m/home/r/repo/src/main/java/com/amihaiemil/docker/UnixDocker.java:48: warning - Tag @link: can't find LocalUnixDocker(HttpClient, String) in com.amihaiemil.docker.UnixDocker\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31mCommand line was: /usr/lib/jvm/java-1.8-openjdk/jre/../bin/javadoc @options @packages\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31mRefer to the generated Javadoc files in '/home/r/repo/target/apidocs' dir.\u001b[m
[\u001b[1;31mERROR\u001b[m] \u001b[1;31m\u001b[m
[\u001b[1;31mERROR\u001b[m] -> \u001b[1m[Help 1]\u001b[m
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] To see the full stack trace of the errors, re-run Maven with the \u001b[1m-e\u001b[m switch.
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
container 0d30b9a4ed5eed20b6334150c861da1f34a2377aaaea50f21696fda1c88fadac is dead
Fri Apr  3 08:40:06 CEST 2020

@0crat
Copy link
Collaborator

0crat commented Apr 3, 2020

Job #329 is not in the agenda of @amihaiemil/z, can't set title

@0crat
Copy link
Collaborator

0crat commented Apr 3, 2020

Job was finished in 10 hours, bonus for fast delivery is possible (see §36)

@0crat 0crat removed the scope label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants