Skip to content

Upgrade qpid.jms.client.version to 1.10.0 and add new repository #630

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

Open
wants to merge 117 commits into
base: qpid-jms-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
0f45245
Upgrade qpid.jms.client.version to 1.10.0 and add new repository
jiridanek Jun 28, 2023
050b5b4
Bump tcnative.version from 2.0.52.Final to 2.0.53.Final (#403)
dependabot[bot] Jun 10, 2022
c811218
Bump maven-enforcer-plugin from 3.0.0 to 3.1.0 (#404)
dependabot[bot] Jun 10, 2022
121af28
Bump artemis.broker.version from 2.22.0 to 2.23.0 (#405)
dependabot[bot] Jun 14, 2022
dadcca7
Bump artemis.jms.client.version from 2.22.0 to 2.23.0 (#406)
dependabot[bot] Jun 14, 2022
415d9eb
Bump checker-qual from 3.22.1 to 3.22.2 (#407)
dependabot[bot] Jun 14, 2022
54b53cf
Bump artemis.broker.version from 2.23.0 to 2.23.1 (#408)
dependabot[bot] Sep 27, 2022
50d9b76
Bump kotlin.version from 1.7.0 to 1.7.10 (#412)
dependabot[bot] Sep 27, 2022
71675b1
Bump jaeger-client from 1.8.0 to 1.8.1 (#410)
dependabot[bot] Sep 27, 2022
90f97b2
Bump artemis.jms.client.version from 2.23.0 to 2.26.0 (#419)
dependabot[bot] Sep 27, 2022
19beda5
Bump artemis-server from 2.23.0 to 2.24.0 in /bom (#415)
dependabot[bot] Sep 27, 2022
8fdd125
Bump maven-jar-plugin from 3.2.2 to 3.3.0 (#420)
dependabot[bot] Sep 27, 2022
c2d3b23
Bump junit-bom from 5.8.2 to 5.9.1 (#423)
dependabot[bot] Sep 27, 2022
da0c815
Bump artemis.broker.version from 2.23.1 to 2.26.0 (#418)
dependabot[bot] Sep 27, 2022
601752c
Bump dagger.version from 2.42 to 2.44 (#425)
dependabot[bot] Sep 27, 2022
35c84bf
Bump mockito-core from 4.6.1 to 4.8.0 (#427)
dependabot[bot] Sep 27, 2022
8b9dc4c
Bump checker-qual from 3.22.2 to 3.25.0 (#424)
dependabot[bot] Sep 27, 2022
ed89f8e
Bump tcnative.version from 2.0.53.Final to 2.0.54.Final (#426)
dependabot[bot] Sep 27, 2022
9501a06
Bump maven-shade-plugin from 3.3.0 to 3.4.0 (#428)
dependabot[bot] Sep 27, 2022
ed7ccd0
Bump jackson-databind from 2.13.3 to 2.13.4 (#429)
dependabot[bot] Sep 27, 2022
74321fd
Bump activemq-client from 5.17.1 to 5.17.2 (#421)
dependabot[bot] Sep 27, 2022
d2b5a83
Bump kotlin.version from 1.7.10 to 1.7.20 (#433)
dependabot[bot] Sep 30, 2022
ce7b73d
Add Dockerfile for multiarch build (#416)
jiridanek Oct 4, 2022
8d6dd76
Add Docker image build instructions (#442)
jiridanek Oct 4, 2022
3f5b712
Fix typo (#443)
jiridanek Oct 4, 2022
6350662
Bump checker-qual from 3.25.0 to 3.26.0 (#444)
dependabot[bot] Oct 4, 2022
4523e5e
Replace direct security manager usage with assertSystemExit in tests …
jiridanek Oct 5, 2022
649acb2
Add test for transactions and reformat file (awful, but standardized)
jiridanek Oct 5, 2022
ba110d6
Upgrade relevant poms to compile with Java 11 (#445)
jiridanek Oct 8, 2022
327c3e6
Reorganize compile plugin pom sections per Kotlin docs
jiridanek Oct 10, 2022
b8850b8
Workaround stuck builds when compiling with `-T1C` Maven option
jiridanek Oct 10, 2022
60db2e0
Mark tests in interop-tests with external tag
jiridanek Oct 10, 2022
d5b4bca
Disable failing interop-tests (that is all of them) and compile them …
jiridanek Oct 10, 2022
2c2696c
Delete some remnant of interop/pom.xml file (#462)
jiridanek Oct 10, 2022
7079a74
Compile cli-activemq-jmx by default (was dead code previously) (#463)
jiridanek Oct 10, 2022
bdd1edb
Bump slfj.version from 1.7.33 to 2.0.3 (#465)
dependabot[bot] Oct 10, 2022
491b7d6
Use log4j2 implementation to get rid of log4j1-related warnings (#471)
jiridanek Oct 13, 2022
0251c17
Bump artemis-core-client in /cli-activemq-jmx (#472)
dependabot[bot] Oct 13, 2022
27afa97
Bump jackson-databind from 2.13.4 to 2.13.4.1 (#474)
dependabot[bot] Oct 14, 2022
251881e
Add makeAddressControl function to embedded broker
jiridanek Oct 7, 2022
2ddf19f
Bump jackson-databind from 2.13.4.1 to 2.13.4.2 (#477)
dependabot[bot] Oct 17, 2022
3cfbdf0
Bump mockito-core from 4.8.0 to 4.8.1 (#478)
dependabot[bot] Oct 24, 2022
b365ebb
Bump maven-shade-plugin from 3.4.0 to 3.4.1 (#479)
dependabot[bot] Oct 27, 2022
23b3336
Update broker entrypoint.sh for Artemis 2.27.0-SNAPSHOT (#483)
jiridanek Oct 28, 2022
21103ee
Fixes #481: WARNING: sun.reflect.Reflection.getCallerClass is not sup…
jiridanek Oct 28, 2022
e871601
Fixes #492: AMQX uses logger to print output (#493)
jiridanek Oct 31, 2022
3097907
Use google maven mirror in github actions (#495)
jiridanek Oct 31, 2022
779732f
Fixes #480: Enable maven-shade-plugin to create executable uberjar fo…
jiridanek Oct 28, 2022
cfa42ee
Fixes #497: Define maven mirror as a simple additional repo (#498)
jiridanek Oct 31, 2022
3c59926
Bump checker-qual from 3.26.0 to 3.27.0 (#502)
dependabot[bot] Nov 1, 2022
5cedc9a
Bump junit-pioneer from 1.7.1 to 1.8.0
dependabot[bot] Nov 11, 2022
3632d57
Bump kotlin.version from 1.7.20 to 1.7.21
dependabot[bot] Nov 12, 2022
8f81e28
Bump jackson-databind from 2.13.4.2 to 2.14.0
dependabot[bot] Nov 12, 2022
124bfda
Bump protonj2-client from 1.0.0-M10 to 1.0.0-M11
dependabot[bot] Nov 12, 2022
d0409f0
Bump dagger.version from 2.44 to 2.44.2
dependabot[bot] Nov 14, 2022
0ca399e
Bump artemis.jms.client.version from 2.26.0 to 2.27.0
dependabot[bot] Nov 21, 2022
24dd020
Bump artemis.broker.version from 2.26.0 to 2.27.0
dependabot[bot] Nov 21, 2022
8acbdce
Bump junit-pioneer from 1.8.0 to 1.9.1
dependabot[bot] Nov 30, 2022
1221dc0
Bump jackson-databind from 2.14.0 to 2.14.1
dependabot[bot] Dec 12, 2022
b18545e
Bump commons-cli from 1.4 to 1.5.0.redhat-00001
dependabot[bot] Dec 12, 2022
9dea42c
Bump slf4j-api from 2.0.3 to 2.0.5
dependabot[bot] Dec 12, 2022
8733c39
Bump mockito-core from 4.8.1 to 4.9.0
dependabot[bot] Dec 12, 2022
b3da7ef
Bump checker-qual from 3.27.0 to 3.28.0
dependabot[bot] Dec 12, 2022
f85555c
Bump artemis.jms.client.version from 2.27.0 to 2.27.1
dependabot[bot] Jan 2, 2023
07edd42
Bump activemq-client from 5.17.2 to 5.17.3
dependabot[bot] Jan 2, 2023
5f0cfde
Bump artemis.broker.version from 2.27.0 to 2.27.1
dependabot[bot] Jan 2, 2023
45b7b07
Bump kotlin.version from 1.7.21 to 1.8.0
dependabot[bot] Jan 2, 2023
8a963f5
Bump mockito-core from 4.9.0 to 4.11.0
dependabot[bot] Jan 2, 2023
3f1620a
Bump annotations from 23.0.0 to 23.1.0
dependabot[bot] Jan 3, 2023
2d33423
Bump slf4j-api from 2.0.5 to 2.0.6
dependabot[bot] Jan 3, 2023
2ed5c4a
Bump maven-surefire-plugin from 3.0.0-M7 to 3.0.0-M8
dependabot[bot] Jan 13, 2023
00e9e5d
Bump annotations from 23.1.0 to 24.0.0
dependabot[bot] Jan 23, 2023
f9e5851
Bump junit-bom from 5.9.1 to 5.9.2
dependabot[bot] Jan 23, 2023
2c51079
Bump checker-qual from 3.28.0 to 3.29.0
dependabot[bot] Jan 23, 2023
43f1213
Bump mockito-core from 4.11.0 to 5.1.1
dependabot[bot] Jan 31, 2023
f760251
Bump jackson-databind from 2.14.1 to 2.14.2
dependabot[bot] Feb 1, 2023
423dbb5
Bump tcnative.version from 2.0.54.Final to 2.0.56.Final
dependabot[bot] Feb 1, 2023
0e0fa6e
Bump maven-enforcer-plugin from 3.1.0 to 3.2.1
dependabot[bot] Feb 1, 2023
27dfeaf
Bump artemis.broker.version from 2.27.1 to 2.28.0
dependabot[bot] Feb 3, 2023
27072ed
Bump junit-pioneer from 1.9.1 to 2.0.0
dependabot[bot] Feb 6, 2023
b89b5b3
Bump kotlin.version from 1.8.0 to 1.8.10
dependabot[bot] Feb 6, 2023
8fb7dcb
Bump tcnative.version from 2.0.56.Final to 2.0.57.Final
dependabot[bot] Feb 6, 2023
3af3437
Bump checker-qual from 3.29.0 to 3.30.0
dependabot[bot] Feb 6, 2023
96e1dda
Bump artemis.jms.client.version from 2.27.1 to 2.28.0
dependabot[bot] Feb 7, 2023
b0dd770
Multistage container image based on UBI
lenosi Oct 10, 2022
8b05070
ADD GitHub Action for cli-java image build
Feb 16, 2023
6828e86
ADD github-action, docker for Dependabot
Feb 16, 2023
11ff749
Bump checker-qual from 3.30.0 to 3.31.0
dependabot[bot] Feb 17, 2023
f870a5b
Bump maven-surefire-plugin from 3.0.0-M8 to 3.0.0-M9
dependabot[bot] Feb 18, 2023
9b48b2a
Bump dagger.version from 2.44.2 to 2.45
dependabot[bot] Feb 18, 2023
e71a457
Bump tcnative.version from 2.0.57.Final to 2.0.59.Final
dependabot[bot] Feb 18, 2023
1a82a8f
Fixes #558: NullPointerException in cli-activemq-jmx when NumberOfPag…
jiridanek Feb 23, 2023
74d7f84
Bump log4j-slf4j2-impl.version from 2.19.0 to 2.20.0 (#557)
dependabot[bot] Feb 23, 2023
61ebe4a
Bump annotations from 24.0.0 to 24.0.1 (#562)
dependabot[bot] Mar 3, 2023
3669ce9
Bump maven-compiler-plugin from 3.10.1 to 3.11.0 (#560)
dependabot[bot] Mar 3, 2023
bf9b3f0
Bump activemq-client from 5.17.3 to 5.17.4 (#561)
dependabot[bot] Mar 3, 2023
24a1e47
Bump checker-qual from 3.31.0 to 3.32.0 (#563)
dependabot[bot] Mar 3, 2023
efe6d00
Bump mockito-core from 5.1.1 to 5.2.0 (#564)
dependabot[bot] Mar 9, 2023
3a26218
Bump slf4j-api from 2.0.6 to 2.0.7 (#566)
dependabot[bot] Mar 24, 2023
8d7e921
Bump activemq-client from 5.17.4 to 5.18.0 (#569)
dependabot[bot] Mar 24, 2023
1912885
Bump maven-surefire-plugin from 3.0.0-M9 to 3.0.0 (#565)
dependabot[bot] Mar 24, 2023
f45efe4
Fix dependabot.yml syntax error
jiridanek Mar 24, 2023
d2c7337
Upgrade checkout and setup-java actions
jiridanek Mar 24, 2023
0f78955
Bump ubi9/openjdk-17 from 1.13 to 1.14-2.1679391793 (#572)
dependabot[bot] Mar 25, 2023
b63c793
Bump ubi9/openjdk-17-runtime from 1.13 to 1.14-2.1679391794 (#571)
dependabot[bot] Mar 25, 2023
42bfaa1
Document cli-*'s currently provided by the project and explain helper…
jiridanek Mar 25, 2023
c71ceae
Document IntelliJ known project setup issues (#574)
jiridanek Mar 26, 2023
0263f46
Document project requirements, esp. tcnative openssl integration (#576)
jiridanek Mar 26, 2023
5992b90
Revert "Bump activemq-client from 5.17.4 to 5.18.0 (#569)" (#578)
jiridanek Mar 26, 2023
95fdec4
Bump kotlin.version from 1.8.10 to 1.8.20 (#580)
dependabot[bot] Apr 1, 2023
b0f9bbb
Bump protonj2-client from 1.0.0-M12 to 1.0.0-M13 (#581)
dependabot[bot] Apr 1, 2023
a867481
Bump jacoco-maven-plugin from 0.8.8 to 0.8.9 (#584)
dependabot[bot] Apr 4, 2023
17461c7
Bump checker-qual from 3.32.0 to 3.33.0 (#583)
dependabot[bot] Apr 4, 2023
b7cee76
Bump maven-enforcer-plugin from 3.2.1 to 3.3.0 (#585)
dependabot[bot] Apr 5, 2023
b58e028
Bump mockito-core from 5.2.0 to 5.3.0 (#588)
dependabot[bot] Apr 12, 2023
6af9a2f
Bump junit-pioneer from 2.0.0 to 2.0.1 (#590)
dependabot[bot] Apr 16, 2023
519d4fd
fixup! Use log4j2 implementation to get rid of log4j1-related warning…
jiridanek Jun 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
labels: ["image"]
directory: "/"
schedule:
interval: "daily"
30 changes: 13 additions & 17 deletions interop/pom.xml → ...hub/workflows/bintray-mirror-settings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2019 Red Hat, Inc.
~ Copyright (c) 2022 Red Hat, Inc.
~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
Expand All @@ -18,18 +17,15 @@
~ limitations under the License.
-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>parent</artifactId>
<groupId>com.redhat.cli-java</groupId>
<version>1.2.2-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>interop</artifactId>


</project>
<!--To make it easier not to use bintray.
https://stackoverflow.com/questions/74258160/is-jcenter-down-permanently-31-oct-->
<settings>
<mirrors>
<mirror>
<id>bintray-maven-central</id>
<name>Bintray Maven Central mirror</name>
<url>https://jcenter.bintray.com</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
50 changes: 50 additions & 0 deletions .github/workflows/bintray-repository-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!--
~ Copyright (c) 2022 Red Hat, Inc.
~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<!--To make it easier not to use bintray.
https://stackoverflow.com/questions/74258160/is-jcenter-down-permanently-31-oct-->
<settings>
<profiles>
<profile>
<id>bintray</id>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray</id>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-plugins</id>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
29 changes: 29 additions & 0 deletions .github/workflows/google-mirror-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
~ Copyright (c) 2022 Red Hat, Inc.
~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<settings>
<mirrors>
<mirror>
<id>google-maven-central</id>
<name>GCS Maven Central mirror</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
48 changes: 48 additions & 0 deletions .github/workflows/google-repository-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
~ Copyright (c) 2022 Red Hat, Inc.
~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<settings>
<profiles>
<profile>
<id>google-maven-central</id>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>google-maven-central</id>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>google-maven-central-plugins</id>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>google-maven-central</activeProfile>
</activeProfiles>
</settings>
44 changes: 44 additions & 0 deletions .github/workflows/image_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Push Image
on:
push:
branches:
- 'main'

env:
IMAGE_NAME: cli-java
IMAGE_REGISTRY: quay.io
IMAGE_NAMESPACE: rhmessagingqe

jobs:
build:
name: Build and push image
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest ${{ github.sha }} ${{ github.ref_name }}
archs: amd64, arm64, ppc64le, s390x
containerfiles: |
./Dockerfile

- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Print images URL
run: echo "Images pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
20 changes: 12 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,42 @@ on:
branches: [ main, qpid-jms-1.x ]
workflow_dispatch:

env:
# https://maven.apache.org/configure.html#maven_args-environment-variable
MAVEN_ARGS: "-Dmaven.artifact.threads=42 --no-transfer-progress --settings=.github/workflows/google-repository-settings.xml"

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'adopt-openj9'
java-version: '11'

- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml ${{env.MAVEN_ARGS}}

- name: Install the qpid-jms subtree (needed for the next step)
run: mvn clean install -DskipTests -pl :cli-qpid-jms -am
run: mvn clean install -DskipTests -pl :cli-qpid-jms -am ${{env.MAVEN_ARGS}}

- name: Run a single test (remember that JUnit5 issue)
run: mvn surefire:test -Dtest=QPIDJMS484Test -pl :cli-qpid-jms
run: mvn surefire:test -Dtest=QPIDJMS484Test -pl :cli-qpid-jms ${{env.MAVEN_ARGS}}

test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'adopt-openj9'
java-version: '11'
Expand All @@ -56,7 +60,7 @@ jobs:
run: sleep 10

- name: mvn package
run: mvn clean package -Ptests,coverage
run: mvn clean package -Ptests,coverage ${{env.MAVEN_ARGS}}

- name: bash ./tests.sh
run: bash ./tests.sh
53 changes: 53 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Arguments for DEV's (comment static FROM and uncomnnet #DEV ones)
ARG UBI_VERSION=9
ARG OPENJDK_VERSION=17
ARG UBI_BUILD_TAG=latest
ARG UBI_RUNTIME_TAG=latest
ARG IMAGE_BUILD=registry.access.redhat.com/ubi${UBI_VERSION}/openjdk-${OPENJDK_VERSION}:${UBI_TAG}
ARG IMAGE_BASE=registry.access.redhat.com/ubi${UBI_VERSION}/openjdk-${OPENJDK_VERSION}-runtime:${UBI_RUNTIME_TAG}

#DEV FROM $IMAGE_BUILD AS build
FROM registry.access.redhat.com/ubi9/openjdk-17:1.14-2.1679391793 AS build

USER root
COPY . /app
WORKDIR /app

ENV MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dmaven.repo.local=/app/.m2 -Dmaven.artifact.threads=42"
RUN mvn -T 1C package -DskipTests=true --no-transfer-progress

RUN mkdir targets && \
cp cli-qpid-jms/target/cli-qpid-jms-*[0-9].jar targets/cli-qpid.jar && \
cp cli-artemis-jms/target/cli-artemis-jms-*[0-9].jar targets/cli-artemis.jar && \
cp cli-paho-java/target/cli-paho-java-*[0-9].jar targets/cli-paho.jar && \
cp cli-activemq/target/cli-activemq-*[0-9].jar targets/cli-activemq.jar && \
cp cli-protonj2/target/cli-protonj2-*[0-9].jar targets/cli-protonj2.jar && \
echo "package info:("$(ls cli-*/target/cli-*.jar)")" >> VERSION.txt

#DEV FROM $IMAGE_BASE
FROM registry.access.redhat.com/ubi9/openjdk-17-runtime:1.14-2.1679391794

LABEL name="Red Hat Messagign QE - Java CLI Image" \
run="podman run --rm -ti <image_name:tag> /bin/bash cli-*"

USER root

RUN mkdir /licenses
COPY ./LICENSE /licenses/LICENSE.txt
COPY ./image/bin /usr/local/bin
COPY --from=build /app/targets/ /opt/cli-java
COPY --from=build /app/VERSION.txt /opt/cli-java

RUN chmod 0755 /usr/local/bin/cli-* && \
chmod +x /usr/local/bin/cli-*

RUN mkdir /var/lib/cli-java && \
chown -R 1001:0 /var/lib/cli-java && \
chmod -R g=u /var/lib/cli-java

USER 1001

VOLUME /var/lib/cli-java
WORKDIR /var/lib/cli-java

CMD ["/bin/bash"]
Loading