Skip to content

Commit

Permalink
bazel(ci): Fix archlinux Dockerfile
Browse files Browse the repository at this point in the history
note: archlinux still don't provide bazel 7.0.0
ref: https://archlinux.org/packages/extra/x86_64/bazel/
  • Loading branch information
Mizux committed Dec 22, 2023
1 parent c649fec commit 505ceba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bazel/docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
FROM archlinux:latest AS env
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN pacman -Syu --noconfirm git base-devel bazel
RUN pacman -Syu --noconfirm git wget base-devel

# Install Bazelisk
RUN wget \
https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 \
&& chmod +x bazelisk-linux-amd64 \
&& mv bazelisk-linux-amd64 /usr/local/bin/bazel

# Java
RUN pacman -Syu --noconfirm jdk11-openjdk
ENV JAVA_HOME=/usr/lib/jvm/default
ENV PATH=${JAVA_HOME}/bin:$PATH

# Install Python
RUN pacman -Syu --noconfirm python python-pip python-setuptools
Expand Down

0 comments on commit 505ceba

Please sign in to comment.