Skip to content

Commit

Permalink
PMM-13671 Update client image labels (#3464)
Browse files Browse the repository at this point in the history
* PMM-13671 Update client image labels

* PMM-13671 Update client image labels

* PMM-13671 Update client image labels

* PMM-13671 Update client image labels

* PMM-13671 Update client image labels

* PMM-13671 Update client image labels
  • Loading branch information
talhabinrizwan authored Jan 17, 2025
1 parent 713c2c6 commit 42fc9ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
26 changes: 19 additions & 7 deletions build/docker/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM redhat/ubi9-minimal as users
FROM redhat/ubi9-minimal AS users

RUN microdnf install shadow-utils jq tar -y

Expand All @@ -10,13 +10,25 @@ RUN groupadd -g 1002 pmm-agent && \
FROM redhat/ubi9-micro

ARG VERSION
ARG RELEASE
ARG BUILD_DATE

LABEL org.opencontainers.image.created ${BUILD_DATE}
LABEL org.opencontainers.image.licenses Apache-2.0
LABEL org.opencontainers.image.title Percona Monitoring and Management Client
LABEL org.opencontainers.image.vendor Percona
LABEL org.opencontainers.image.version ${VERSION}
LABEL build-date=${BUILD_DATE} \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.licenses=Apache-2.0 \
org.opencontainers.image.title="Percona Monitoring and Management Client" \
org.opencontainers.image.vendor="Percona, LLC" \
org.opencontainers.image.version=${VERSION} \
version=${VERSION} \
release=${RELEASE} \
name="percona/pmm-client" \
summary="PMM Client image" \
description="The client image for Percona Monitoring and Management" \
io.k8s.description="The client image for Percona Monitoring and Management" \
io.k8s.display-name="Percona Monitoring and Management Client" \
url="https://docs.percona.com/percona-monitoring-and-management" \
vendor="Percona, LLC" \
maintainer="Percona, LLC"

COPY LICENSE /licenses/
COPY --from=users --chown=0:0 /etc/passwd /etc/passwd
Expand Down Expand Up @@ -55,6 +67,6 @@ RUN cd /tmp/pmm-client-* \

USER pmm-agent
WORKDIR /usr/local/percona/pmm/
ENV PATH /usr/local/percona/pmm/bin/:$PATH
ENV PATH=/usr/local/percona/pmm/bin/:$PATH

ENTRYPOINT ["/usr/local/percona/pmm/bin/pmm-agent-entrypoint"]
6 changes: 2 additions & 4 deletions build/scripts/build-client-docker
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ if [ -z "${DOCKER_CLIENT_TAG}" ]; then
DOCKER_CLIENT_TAG=perconalab/pmm-client-fb:${full_pmm_version}
fi


CLIENT_IMAGE_VERSION=`echo $DOCKER_CLIENT_TAG | cut -d ':' -f2`

docker build --build-arg BUILD_DATE="`date --rfc-3339=seconds`" \
--build-arg VERSION="$CLIENT_IMAGE_VERSION" \
--build-arg VERSION=$(cat VERSION) \
--build-arg RELEASE=$(date +%s) \
--squash \
--no-cache \
-f ${DOCKER_FILE_LOCATION}/${docker_file} \
Expand Down

0 comments on commit 42fc9ce

Please sign in to comment.