Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use env variable for docker image entry point config #699

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use env variable for docker image entry point config
  • Loading branch information
Ming Lyu 吕铭 committed Sep 15, 2023
commit 8245b80cc9909094d971d5e68d49dea4536bbc38
24 changes: 12 additions & 12 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ container_image(
name = "bazel-remote-image",
architecture = "amd64",
base = ":bazel-remote-base",
entrypoint = [
"/app/bazel-remote-base.binary",
"--http_address=:8080",
"--dir=/data",
env = {
"BAZEL_REMOTE_DIR": "/data",
"BAZEL_REMOTE_HTTP_ADDRESS": ":8080",

# Listen on all addresses, not just 127.0.0.1, so this can
# be reached from outside the container (with a -p mapping).
# Specify a port to enable the profiling http server.
"--profile_address=:6060",
],
"BAZEL_REMOTE_PROFILE_ADDRESS": ":6060",
},
entrypoint = ["/app/bazel-remote-base.binary"],
ports = ["8080"],
tars = [
"//docker:data_dir_tar",
Expand All @@ -157,16 +157,16 @@ container_image(
name = "bazel-remote-image-arm64",
architecture = "arm64",
base = ":bazel-remote-base-arm64",
entrypoint = [
"/app/bazel-remote-base-arm64.binary",
"--http_address=:8080",
"--dir=/data",
env = {
"BAZEL_REMOTE_DIR": "/data",
"BAZEL_REMOTE_HTTP_ADDRESS": ":8080",

# Listen on all addresses, not just 127.0.0.1, so this can
# be reached from outside the container (with a -p mapping).
# Specify a port to enable the profiling http server.
"--profile_address=:6060",
],
"BAZEL_REMOTE_PROFILE_ADDRESS": ":6060",
},
entrypoint = ["/app/bazel-remote-base-arm64.binary"],
ports = ["8080"],
tars = [
"//docker:data_dir_tar",
Expand Down