-
Notifications
You must be signed in to change notification settings - Fork 493
travis: test on jdk9 and jdk10, fix issues #226
Conversation
Travis doesn't seem to have `openjdk9`, so using `oraclejdk9`.
} | ||
|
||
private GenericContainer createFrontend(final Network network, | ||
final GenericContainer backendJob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backendJob
doesn't seem to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, that was left over from an earlier version of the code - updated
helios-testing is not yet Java 9 compatiable
1d17cbe
to
0f5688e
Compare
I believe this addresses #77 and makes the plugin compatible on Java 9/10. I've tested this by installing the plugin locally ( @spotify/docker-admins |
|
||
return new GenericContainer(image) | ||
.withExposedPorts(1338) | ||
.withCommand("http://backend:" + BACKEND_PORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the point of this command? It is just a uri.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the frontend container expects it as an argument to know how to talk to the backend container:
dockerfile-maven/plugin/src/it/advanced/frontend/src/main/java/com/spotify/it/frontend/Main.java
Lines 37 to 42 in 2738a95
public static void main(String[] args) { | |
if (args.length < 1) { | |
System.err.println("Needs backend URL as command-line argument"); | |
System.exit(1); | |
return; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Travis doesn't seem to have
openjdk9
, so usingoraclejdk9
.