Skip to content

Commit

Permalink
Add docker for fedora 39 linux distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
davido committed May 8, 2023
1 parent 022fa80 commit 6aff4ef
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions buildkite/docker/fedora39/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<<<<<<< HEAD
FROM fedora:39 as fedora39-bazel-java17
ARG BUILDARCH

RUN dnf update -y

### Install packages required by Bazel and its tests
=======
FROM fedora:39
ARG BUILDARCH

# Install required packages.
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo

RUN dnf update -y

>>>>>>> c2a8200f (Add docker for fedora 39 linux distribution)
RUN dnf install -y \
bind-utils \
dnsutils \
Expand All @@ -15,6 +26,10 @@ RUN dnf install -y \
git \
glibc-langpack-en \
glibc-locale-source \
<<<<<<< HEAD
=======
google-cloud-sdk \
>>>>>>> c2a8200f (Add docker for fedora 39 linux distribution)
iproute \
iputils \
lcov \
Expand All @@ -38,20 +53,27 @@ RUN dnf install -y \
&& dnf clean all \
&& rm -rf /var/cache/yum

<<<<<<< HEAD
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1

=======
>>>>>>> c2a8200f (Add docker for fedora 39 linux distribution)
# Allow using sudo inside the container.
RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers

ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk

<<<<<<< HEAD
FROM fedora39-bazel-java17 AS fedora39-java17

# Install Google Cloud SDK
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo

RUN dnf install -y \
google-cloud-sdk
=======
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
>>>>>>> c2a8200f (Add docker for fedora 39 linux distribution)

# Bazelisk
RUN LATEST_BAZELISK=$(curl -sSI https://github.com/bazelbuild/bazelisk/releases/latest | grep -i '^location: ' | sed 's|.*/||' | sed $'s/\r//') && \
Expand Down

0 comments on commit 6aff4ef

Please sign in to comment.