forked from bazelbuild/continuous-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker for fedora 39 linux distribution
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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 | ||
|
||
RUN dnf install -y \ | ||
bind-utils \ | ||
dnsutils \ | ||
dpkg-dev \ | ||
expect \ | ||
findutils \ | ||
gcc \ | ||
gcc-c++ \ | ||
git \ | ||
glibc-langpack-en \ | ||
glibc-locale-source \ | ||
google-cloud-sdk \ | ||
iproute \ | ||
iputils \ | ||
lcov \ | ||
java-17-openjdk \ | ||
java-17-openjdk-devel \ | ||
patch \ | ||
perl \ | ||
python2 \ | ||
python3 \ | ||
python3-devel \ | ||
python3-pip \ | ||
python3-requests \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
python3-yaml \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
which \ | ||
zip \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
# 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 | ||
|
||
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1 | ||
|
||
# Bazelisk | ||
RUN LATEST_BAZELISK=$(curl -sSI https://github.com/bazelbuild/bazelisk/releases/latest | grep -i '^location: ' | sed 's|.*/||' | sed $'s/\r//') && \ | ||
curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/${LATEST_BAZELISK}/bazelisk-linux-${BUILDARCH} && \ | ||
chown root:root /usr/local/bin/bazel && \ | ||
chmod 0755 /usr/local/bin/bazel | ||
|
||
# Buildifier | ||
RUN LATEST_BUILDIFIER=$(curl -sSI https://github.com/bazelbuild/buildtools/releases/latest | grep -i '^location: ' | sed 's|.*/||' | sed $'s/\r//') && \ | ||
curl -Lo /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/${LATEST_BUILDIFIER}/buildifier-linux-${BUILDARCH} && \ | ||
chown root:root /usr/local/bin/buildifier && \ | ||
chmod 0755 /usr/local/bin/buildifier | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[google-cloud-sdk] | ||
name=Google Cloud SDK | ||
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 | ||
enabled=1 | ||
gpgcheck=1 | ||
repo_gpgcheck=0 | ||
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg | ||
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters