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 all commits
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
26 changes: 12 additions & 14 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,15 @@ pkg_tar(
oci_image(
name = "bazel-remote-image",
base = "@cgo_amd64_base", # Does not include openssl.
entrypoint = [
"/bazel-remote",
"--http_address=:8080",
"--dir=/data",

entrypoint = ["/bazel-remote"],
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",
},
exposed_ports = ["8080"],
tars = [
"data.tar",
Expand All @@ -140,16 +139,15 @@ pkg_tar(
oci_image(
name = "bazel-remote-image-arm64",
base = "@cgo_arm64_base", # Does not include openssl.
entrypoint = [
"/bazel-remote-linux-arm64",
"--http_address=:8080",
"--dir=/data",

entrypoint = ["/bazel-remote-linux-arm64"],
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",
},
exposed_ports = ["8080"],
tars = [
"data.tar",
Expand Down