Skip to content

Commit eec243f

Browse files
authored
Merge pull request opendatahub-io#64 from red-hat-data-services/revert-63-cp_fix_build_version
Revert "[Cherry-pick]fix build-version issue"
2 parents fef5248 + 375949b commit eec243f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile.konflux

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ RUN ls -la ./cachi2/output
88
RUN ls -la ./cachi2/output/deps
99

1010
# Install packages for the install script and extract archives
11-
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y unzip jq wget git
11+
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y unzip jq wget
1212

1313
RUN cd ./cachi2/output/deps/generic && \
1414
for file in *.zip; do unzip -d /root/ "$file"; done
1515

16-
# Assume that source code comes from a Git repository
17-
RUN echo "$(date '+%Y%m%d')-$(git rev-parse HEAD | cut -c -5)" > target/dockerhome/build-version && \
18-
echo "$(git rev-parse HEAD)" > target/dockerhome/release && \
19-
echo "$(git branch --show-current|sed 's/^release-//g')-$(git branch --show-current)_$(date '+%Y%m%d')-$(git rev-parse HEAD | cut -c -5)" > target/dockerhome/version
2016

2117
###############################################################################
2218
#latest tag
@@ -43,6 +39,7 @@ RUN sed -i 's:security.provider.12=SunPKCS11:#security.provider.12=SunPKCS11:g'
4339
COPY --from=stage root/target/dockerhome/ /opt/kserve/mmesh/
4440
COPY --from=stage root/target/dockerhome/version /etc/modelmesh-version
4541

42+
4643
# Make this the current directory when starting the container
4744
WORKDIR /opt/kserve/mmesh
4845

0 commit comments

Comments
 (0)