Skip to content

Commit

Permalink
feat: update test image to ol9 (#877)
Browse files Browse the repository at this point in the history
* feat: update test image to ol9

* use microdnf

* use docker-ce

* setup docker-ce repo

* update hashicorp repo

* update base image

* add comment

* add comment

* update graalvm b image

* restore graalvm-b test image
  • Loading branch information
JoeWang1127 authored Aug 15, 2024
1 parent ca0443f commit 0dd80f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
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

0 comments on commit 0dd80f0

Please sign in to comment.