Skip to content

Commit

Permalink
Version update (#111)
Browse files Browse the repository at this point in the history
* update versions

* fixed linting issues

* typecast in InventoryClient.java

* fixed linting issues

* reverting last changees

* trying fix for Jersey Class

* fixed linting issues

* fixed linting issues

* fixed linting issues

* reverted changes to InventoryClient.java and rolled back Jersey Client version in pom.xml

* updating versions

Co-authored-by: Rutav Shah <[email protected]>
  • Loading branch information
gkwan-ibm and Rutav Shah authored May 31, 2021
1 parent ac84d2d commit 77c1054
Show file tree
Hide file tree
Showing 20 changed files with 51 additions and 49 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ mvn -pl models install
mvn package
```

include::{common-includes}/ol-kernel-docker-pull.adoc[]
include::{common-includes}/ol-full-docker-pull.adoc[]

Run the following commands to containerize the microservices:

Expand Down
2 changes: 1 addition & 1 deletion finish/inventory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
8 changes: 4 additions & 4 deletions finish/inventory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
</dependency>
<!-- end::kafka[] -->
<!-- For tests -->
Expand All @@ -70,13 +70,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -87,7 +87,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion finish/models/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion finish/query/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
14 changes: 7 additions & 7 deletions finish/query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.30</version>
<version>2.34</version>
</dependency>
<!-- end::jerseyClient[] -->
<!-- tag::jerseyRxjava[] -->
<dependency>
<groupId>org.glassfish.jersey.ext.rx</groupId>
<artifactId>jersey-rx-client-rxjava</artifactId>
<version>2.30</version>
<version>2.34</version>
</dependency>
<!-- end::jerseyRxjava[] -->
<!-- tag::jerseyRxjava2[] -->
<dependency>
<groupId>org.glassfish.jersey.ext.rx</groupId>
<artifactId>jersey-rx-client-rxjava2</artifactId>
<version>2.30</version>
<version>2.34</version>
</dependency>
<!-- end::jerseyRxjava2[] -->
<!-- For tests -->
Expand All @@ -84,19 +84,19 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mockserver</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mock-server</groupId>
<artifactId>mockserver-client-java</artifactId>
<version>5.10.0</version>
<version>5.11.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -107,7 +107,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public class InventoryClient {
@ConfigProperty(name = "INVENTORY_BASE_URI", defaultValue = "http://localhost:9085")
private String baseUri;


public List<String> getSystems() {
return ClientBuilder.newClient()
.target(baseUri)
.path("/inventory/systems")
.request()
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
.get(new GenericType<List<String>>(){});
.header(HttpHeaders.CONTENT_TYPE,
MediaType.APPLICATION_JSON)
.get(new GenericType<List<String>>() { });
}

// tag::getSystem[]
Expand All @@ -55,11 +55,12 @@ public Observable<Properties> getSystem(String hostname) {
.path("/inventory/systems")
.path(hostname)
.request()
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
.header(HttpHeaders.CONTENT_TYPE,
MediaType.APPLICATION_JSON)
// tag::rx[]
.rx(RxObservableInvoker.class)
// end::rx[]
.get(new GenericType<Properties>(){});
.get(new GenericType<Properties>() { });
}
// end::getSystem[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class AppContainerConfig implements SharedContainerConfiguration {
private static Network network = Network.newNetwork();

@Container
public static MockServerContainer mockServer = new MockServerContainer("5.10.0")
public static MockServerContainer mockServer = new MockServerContainer("5.11.2")
.withNetworkAliases("mock-server")
.withNetwork(network);

Expand Down
2 changes: 1 addition & 1 deletion finish/system/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
10 changes: 5 additions & 5 deletions finish/system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
</dependency>
<!-- end::kafka[] -->
<!-- tag::rxjava[] -->
<dependency>
<groupId>io.reactivex.rxjava3</groupId>
<artifactId>rxjava</artifactId>
<version>3.0.0</version>
<version>3.0.12</version>
</dependency>
<!-- end::rxjava[] -->
<!-- For tests -->
Expand All @@ -72,13 +72,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -89,7 +89,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down
7 changes: 4 additions & 3 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ do
d) DRIVER="${OPTARG}";;
b) BUILD="${OPTARG}";;
u) DOCKER_USERNAME="${OPTARG}";;
*) echo "Invalid option";;
esac
done

echo "Testing daily build image"

sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"</runtimeUrl></install></configuration>" system/pom.xml inventory/pom.xml query/pom.xml
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" system/pom.xml inventory/pom.xml query/pom.xml
cat system/pom.xml inventory/pom.xml query/pom.xml

sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM "$DOCKER_USERNAME"/olguides:"$BUILD";g" system/Dockerfile inventory/Dockerfile query/Dockerfile
sed -i "s;FROM openliberty/open-liberty:full-java8-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" system/Dockerfile inventory/Dockerfile query/Dockerfile
cat system/Dockerfile inventory/Dockerfile query/Dockerfile

docker pull $DOCKER_USERNAME"/olguides:"$BUILD
docker pull "$DOCKER_USERNAME""/olguides:""$BUILD"

../scripts/testApp.sh
2 changes: 1 addition & 1 deletion scripts/dockerImageTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "Testing daily Docker image"
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" system/pom.xml inventory/pom.xml query/pom.xml
cat system/pom.xml inventory/pom.xml query/pom.xml

sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM openliberty/daily:latest;g" system/Dockerfile inventory/Dockerfile query/Dockerfile
sed -i "s;FROM openliberty/open-liberty:full-java11-openj9-ubi;FROM openliberty/daily:latest;g" system/Dockerfile inventory/Dockerfile query/Dockerfile
cat system/Dockerfile inventory/Dockerfile query/Dockerfile

docker pull "openliberty/daily:latest"
Expand Down
2 changes: 1 addition & 1 deletion start/inventory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
8 changes: 4 additions & 4 deletions start/inventory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
</dependency>
<!-- For tests -->
<dependency>
Expand All @@ -66,13 +66,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -83,7 +83,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion start/models/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion start/query/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
8 changes: 4 additions & 4 deletions start/query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mockserver</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mock-server</groupId>
<artifactId>mockserver-client-java</artifactId>
<version>5.10.0</version>
<version>5.11.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -85,7 +85,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class AppContainerConfig implements SharedContainerConfiguration {
private static Network network = Network.newNetwork();

@Container
public static MockServerContainer mockServer = new MockServerContainer("5.10.0")
public static MockServerContainer mockServer = new MockServerContainer("5.11.2")
.withNetworkAliases("mock-server")
.withNetwork(network);

Expand Down
2 changes: 1 addition & 1 deletion start/system/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi
FROM openliberty/open-liberty:full-java11-openj9-ubi

ARG VERSION=1.0
ARG REVISION=SNAPSHOT
Expand Down
10 changes: 5 additions & 5 deletions start/system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
</dependency>
<!-- end::kafka[] -->
<!-- tag::rxjava[] -->
<dependency>
<groupId>io.reactivex.rxjava3</groupId>
<artifactId>rxjava</artifactId>
<version>3.0.0</version>
<version>3.0.12</version>
</dependency>
<!-- end::rxjava[] -->
<!-- For tests -->
Expand All @@ -72,13 +72,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>1.15.1</version>
<version>1.15.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -89,7 +89,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
<configuration>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
Expand Down

0 comments on commit 77c1054

Please sign in to comment.