Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Commit 78ea297

Browse files
author
Ljupcho Palashevski
authored
Merge pull request #78 from lpalashevski/release-fixes
Release fixes
2 parents 99edb6e + 5609961 commit 78ea297

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

.github/workflows/merge.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
tags: odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}, odpi/egeria-connector-jdbc:latest, quay.io/odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}, quay.io/odpi/egeria-connector-jdbc:latest
7474
platforms: linux/amd64,linux/arm64
7575
build-args: |
76-
EGERIA_BASE_IMAGE=${{ env.EGERIA_BASE_IMAGE }}
77-
CONNECTOR_VERSION=${{ env.CONNECTOR_VERSION }}
78-
EGERIA_VERSION=${{ env.EGERIA_VERSION }}
76+
egeria_base_image=${{ env.EGERIA_BASE_IMAGE }}
77+
connector_version=${{ env.CONNECTOR_VERSION }}
78+
egeria_version=${{ env.EGERIA_VERSION }}
7979
- name: Build and push( to quay.io and docker.io (no tag latest)
8080
if: ${{ github.ref != 'refs/heads/main'}}
8181
uses: docker/build-push-action@v4
@@ -85,9 +85,9 @@ jobs:
8585
tags: odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}, quay.io/odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}
8686
platforms: linux/amd64,linux/arm64
8787
build-args: |
88-
EGERIA_BASE_IMAGE=${{ env.EGERIA_BASE_IMAGE }}
89-
CONNECTOR_VERSION=${{ env.CONNECTOR_VERSION }}
90-
EGERIA_VERSION=${{ env.EGERIA_VERSION }}
88+
egeria_base_image=${{ env.EGERIA_BASE_IMAGE }}
89+
connector_version=${{ env.CONNECTOR_VERSION }}
90+
egeria_version=${{ env.EGERIA_VERSION }}
9191
# --
9292
- name: Upload Connector
9393
uses: actions/upload-artifact@v3

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ jobs:
6666
with:
6767
context: .
6868
push: true
69-
tags: odpi/egeria-connector-jdbc::${{ env.CONNECTOR_VERSION }}, quay.io/odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}
69+
tags: odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}, quay.io/odpi/egeria-connector-jdbc:${{ env.CONNECTOR_VERSION }}
7070
platforms: linux/amd64,linux/arm64
7171
build-args: |
72-
EGERIA_BASE_IMAGE=${{ env.EGERIA_BASE_IMAGE }}
73-
CONNECTOR_VERSION=${{ env.CONNECTOR_VERSION }}
74-
EGERIA_VERSION=${{ env.EGERIA_VERSION }}
72+
egeria_base_image=${{ env.EGERIA_BASE_IMAGE }}
73+
connector_version=${{ env.CONNECTOR_VERSION }}
74+
egeria_version=${{ env.EGERIA_VERSION }}
7575
# Upload the library so that build results can be viewed
7676
- name: Upload Connector
7777
uses: actions/upload-artifact@v3

Dockerfile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright Contributors to the Egeria project
33

4-
# This is the EGERIA version - typically passed from the ci/cd pipeline
5-
ARG EGERIA_BASE_IMAGE=quay.io/odpi/egeria:latest
6-
ARG EGERIA_VERSION=latest
4+
# Image base default for building the connector image
5+
ARG egeria_base_image=quay.io/odpi/egeria
6+
# Egeria base image version to extend
7+
ARG egeria_version=4.1-SNAPSHOT
78
# Must be set to help get the right files for the connextors
8-
9-
FROM ${EGERIA_BASE_IMAGE}:${EGERIA_VERSION}
10-
ARG CONNECTOR_VERSION=0.1-SNAPSHOT
9+
FROM ${egeria_base_image}:${egeria_version}
10+
# Egeria connector default version, arg passed from ci/cd will overwrite this value
11+
ARG connector_version=1.2-SNAPSHOT
12+
# Default app user defined in the base redhat docker image ubi9/openjdk-17-runtime
13+
ARG app_user=185
1114

1215
# Labels from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys (with additions prefixed ext)
1316
# We should inherit all the base labels from the egeria image and only overwrite what is necessary.
@@ -17,10 +20,10 @@ LABEL org.opencontainers.image.description = "Egeria with JDBC connector" \
1720
# This assumes we only have one uber jar (ensure old versions cleaned out beforehand). Avoids having to pass connector version
1821

1922
# Note that we currently only build a simple jar. If additional dependencies are needed, a jar with dependencies will be needed, or the libraries will need to be added here
20-
ENV CONNECTOR_VERSION ${CONNECTOR_VERSION}
23+
ENV CONNECTOR_VERSION $connector_version
2124

22-
COPY jdbc-resource-connector/build/libs/egeria-connector-resource-jdbc-${CONNECTOR_VERSION}.jar /deployments/server/lib
23-
COPY jdbc-integration-connector/build/libs/egeria-connector-integration-jdbc-${CONNECTOR_VERSION}.jar /deployments/server/lib
25+
COPY jdbc-resource-connector/build/libs/egeria-connector-resource-jdbc-$connector_version.jar /deployments/server/lib
26+
COPY jdbc-integration-connector/build/libs/egeria-connector-integration-jdbc-$connector_version.jar /deployments/server/lib
2427

2528
# Add any additional, openly-licensable, connectors here - ensure licenses are added to the LICENSE-Docker.txt
2629
COPY LICENSE-Docker.txt /deployments/server/LICENSE-JDBC-3RD-PARTY.txt
@@ -30,4 +33,4 @@ USER root
3033
RUN (cd /deployments/server/lib && curl -O -J https://jdbc.postgresql.org/download/postgresql-42.5.2.jar)
3134

3235
# Restore the standard id for container execution
33-
USER jboss
36+
USER $app_user

0 commit comments

Comments
 (0)