Skip to content

Commit 0fa6101

Browse files
authored
The run.sh script requires git, which is not available by default (#22174)
* The run.sh script requires git, but git is not available by default in the base image I've created a shell in the datacontainer and noticed that the run.sh script fails, because the git command is not found. Without it, the datacontainer cannot check out the local clone of the repo and we end up with a completely empty/usr/data/openapispecs. This is currently blocking RPaaS api-validation service in Air-Gapped clouds, where we depend entirely on specs loaded from the data container. I tested this change locally: WIth git being previously installed to the image, run.sh succeeds and /usr/data/openapispecs is properly populated with the repo contents. * Addressing PR commants Use Ubuntu 22.04, as suggested in the PR reviews.
1 parent b56524c commit 0fa6101

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/datacontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04
1+
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:22.04
2+
3+
RUN apt-get -y update
4+
RUN apt-get -y install git
25

36
RUN mkdir -p /usr/data/specrepo/
47

0 commit comments

Comments
 (0)