-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update package lists and install required dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
apt-transport-https \ | ||
curl \ | ||
gnupg \ | ||
protobuf-compiler \ | ||
rapidjson-dev \ | ||
build-essential \ | ||
openjdk-11-jdk \ | ||
zip \ | ||
unzip \ | ||
clang-format | ||
|
||
# Install Bazel | ||
RUN curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg \ | ||
&& mv bazel.gpg /etc/apt/trusted.gpg.d/ \ | ||
&& echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \ | ||
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \ | ||
&& apt-get update && apt-get install -y bazel=5.0.0 \ | ||
&& rm /etc/apt/sources.list.d/bazel.list | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy your project files to the container | ||
COPY . /app | ||
|
||
# Build the project with Bazel | ||
RUN bazel --version | ||
RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier | ||
RUN bazel build service/tools/kv/api_tools/kv_service_tools |
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,32 @@ | ||
# Use a base image for ARM64 architecture | ||
FROM arm64v8/ubuntu:20.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update package lists and install required dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
apt-transport-https \ | ||
curl \ | ||
gnupg \ | ||
protobuf-compiler \ | ||
rapidjson-dev \ | ||
build-essential \ | ||
openjdk-11-jdk \ | ||
zip \ | ||
unzip \ | ||
clang-format | ||
|
||
# Install Bazelisk | ||
RUN curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-arm64 \ | ||
&& chmod +x /usr/local/bin/bazel | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy your project files to the container | ||
COPY . /app | ||
|
||
# Build the project with Bazel | ||
RUN bazel --version | ||
RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier | ||
RUN bazel build service/tools/kv/api_tools/kv_service_tools |
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