Skip to content

Commit

Permalink
PMM-13487 Package build.json with the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 14, 2024
1 parent 49b9319 commit b7854bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/docker/server/Dockerfile.el9
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ RUN microdnf -y install epel-release && \
COPY entrypoint.sh /opt/entrypoint.sh
COPY ansible /opt/ansible
COPY RPMS /tmp/RPMS
COPY gitCommit /tmp/gitCommit
COPY gitCommit /tmp/
COPY build.json /tmp/

# Use COPY as we want to unarchive it with ansible
COPY pmm-client.tar.gz /tmp/
Expand Down
5 changes: 5 additions & 0 deletions build/scripts/build-server-docker
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ main() {
cp -r "${pmm_build_dir}/ansible" "${docker_root}/ansible"
cp "${pmm_build_dir}/docker/server/"* "${docker_root}"
cp ${build_dir}/tarball/pmm-client-*.tar.gz "${docker_root}/pmm-client.tar.gz"
if [ -s "${root_dir}/build/build.json" ]; then
cp "${root_dir}/build/build.json" "${docker_root}/build.json"
else
echo -n "{}" > "${docker_root}/build.json"
fi

if [ -n "$CI" ]; then
git -C ${root_dir} rev-parse HEAD > ${docker_root}/gitCommit
Expand Down

0 comments on commit b7854bf

Please sign in to comment.