Skip to content

Commit

Permalink
bazel(ci): docker cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 11, 2023
1 parent eea10fb commit dd38534
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bazel/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ COPY . .
FROM devel AS build
RUN bazel version
RUN bazel build \
-c opt \
--host_javabase=@local_jdk//:jdk \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--host_javabase=@local_jdk//:jdk \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
ortools/... examples/...
4 changes: 3 additions & 1 deletion bazel/docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/r/opensuse/tumbleweed
FROM opensuse/tumbleweed AS env

# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN zypper update -y \
Expand All @@ -16,7 +17,8 @@ https://download.opensuse.org/repositories/home:ftake:branches:M17N/openSUSE_Tum
&& zypper clean -a

# Install Python
RUN zypper install -y python3 python3-pip python3-devel \
RUN zypper update -y \
&& zypper install -y python3 python3-pip python3-devel \
&& zypper clean -a

FROM env AS devel
Expand Down

0 comments on commit dd38534

Please sign in to comment.