Skip to content

Commit

Permalink
Merge pull request #14 from smatvienko-tb/java-update
Browse files Browse the repository at this point in the history
Java update
  • Loading branch information
ashvayka authored Apr 25, 2024
2 parents 61a8b85 + 79ea780 commit a4910af
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 17 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

Build multi-arch images and push to Docker Hub:
```bash
mvn clean install -P push-docker-amd-arm-images
docker buildx prune
mvn clean install -P push-docker-amd-arm-images -pl base -Ddebian.codename=bullseye-slim
mvn clean install -P push-docker-amd-arm-images -pl base
mvn clean install -P push-docker-amd-arm-images -pl '!base,!openjdk21'
```

Build specific node version:
Expand Down
2 changes: 1 addition & 1 deletion base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<artifactId>base</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion haproxy-certbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion node/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<artifactId>node</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions openjdk11/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FROM thingsboard/base:${debian.codename}
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8
ENV JAVA_HOME /docker-java-home
ENV JAVA_VERSION 11.0.22
ENV JAVA_DEBIAN_VERSION 11.0.22+7-1~deb11u1
ENV JAVA_VERSION 11.0.23
ENV JAVA_DEBIAN_VERSION 11.0.23+9-1~deb11u1

RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
Expand All @@ -44,7 +44,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get autoremove --purge --yes ; \
rm -rf /var/lib/apt/lists/*; \
# expire resolved DNS in 60 sec
echo 'networkaddress.cache.ttl=60' >> /etc/java-11-openjdk/security/java.security \
echo 'networkaddress.cache.ttl=60' >> /etc/java-11-openjdk/security/java.security ; \
\
# verify that "docker-java-home" returns what we expect
[ "$(readlink -f "$JAVA_HOME")" = "$(docker-java-home)" ]; \
Expand Down
3 changes: 1 addition & 2 deletions openjdk11/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<artifactId>openjdk11</artifactId>
Expand All @@ -37,7 +37,6 @@
<docker.push-arm-amd-image.phase>pre-integration-test</docker.push-arm-amd-image.phase>
<docker.push-arm-amd-image-debian-codename.phase>pre-integration-test</docker.push-arm-amd-image-debian-codename.phase>
</properties>

<build>
<plugins>
<plugin>
Expand Down
6 changes: 3 additions & 3 deletions openjdk17/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ FROM ${docker.repo}/base:${debian.codename}
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8
ENV JAVA_HOME /docker-java-home
ENV JAVA_VERSION 17.0.10
ENV JAVA_DEBIAN_VERSION 17.0.10+7-1~deb12u1
ENV JAVA_VERSION 17.0.11
ENV JAVA_DEBIAN_VERSION 17.0.11+9-1~deb12u1

RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
Expand All @@ -43,7 +43,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get autoremove --purge --yes ; \
rm -rf /var/lib/apt/lists/*; \
# expire resolved DNS in 60 sec
echo 'networkaddress.cache.ttl=60' >> /etc/java-17-openjdk/security/java.security \
echo 'networkaddress.cache.ttl=60' >> /etc/java-17-openjdk/security/java.security ; \
\
# verify that "docker-java-home" returns what we expect
[ "$(readlink -f "$JAVA_HOME")" = "$(docker-java-home)" ]; \
Expand Down
2 changes: 1 addition & 1 deletion openjdk17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<artifactId>openjdk17</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion openjdk21/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get autoremove --purge --yes ; \
rm -rf /var/lib/apt/lists/*; \
# expire resolved DNS in 60 sec
echo 'networkaddress.cache.ttl=60' >> /etc/java-21-openjdk/security/java.security \
echo 'networkaddress.cache.ttl=60' >> /etc/java-21-openjdk/security/java.security ; \
\
# verify that "docker-java-home" returns what we expect
[ "$(readlink -f "$JAVA_HOME")" = "$(docker-java-home)" ]; \
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.thingsboard</groupId>
<artifactId>docker</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
<packaging>pom</packaging>

<name>ThingsBoard Base Docker images</name>
Expand Down
2 changes: 1 addition & 1 deletion toolbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.thingsboard</groupId>
<artifactId>docker</artifactId>
<version>1.8.0</version>
<version>1.9.0</version>
</parent>

<artifactId>toolbox</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion website/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.thingsboard</groupId>
<version>1.8.0</version>
<version>1.9.0</version>
<artifactId>docker</artifactId>
</parent>
<artifactId>website</artifactId>
Expand Down

0 comments on commit a4910af

Please sign in to comment.