Skip to content

feat: update test image to ol9 #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 15, 2024
6 changes: 6 additions & 0 deletions .cloudbuild/docker-ce.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/rhel/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/rhel/gpg
17 changes: 10 additions & 7 deletions .cloudbuild/graalvm-a.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ghcr.io/graalvm/graalvm-community:21.0.2-ol7-20240116
FROM ghcr.io/graalvm/graalvm-community:21.0.2-ol9-20240116

RUN yum update -y && \
yum install -y wget unzip git && \
# use microdnf, see https://github.com/graalvm/container/issues/10
RUN microdnf update -y oraclelinux-release-el9 && \
microdnf install -y wget unzip git && \
# Install maven
wget -q https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip -O /tmp/maven.zip && \
unzip /tmp/maven.zip -d /tmp/maven && \
Expand All @@ -27,20 +28,22 @@ ENV PATH $PATH:/usr/local/lib/maven/bin

# Install gcloud SDK
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
RUN yum install -y google-cloud-sdk
RUN microdnf install -y google-cloud-sdk

# Adding the package path to local
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin

# Install docker
RUN yum install -y docker-engine docker-cli
# See also https://docs.docker.com/engine/install/rhel/#set-up-the-repository
COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo
RUN microdnf install -y docker-ce docker-ce-cli

# Install terraform
# See also https://www.hashicorp.com/official-packaging-guide
COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo
RUN yum -y install terraform
RUN microdnf -y install terraform

# Install jq
RUN yum -y install jq
RUN microdnf -y install jq

WORKDIR /workspace
Loading