blob: 3039a55c645fa0f48b8f1ca310513e3046842f99 [file]
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
# Docker image with Temporal server and tools to admin the server.
container_image(
name = "temporal-server",
base = "@basealpine//image",
# Temporal will need to generate yml file under config folder using
# environment vars. It needs root and access to the folder config.
empty_dirs = [
"/etc/temporal/config",
],
empty_files = [
# The default dynamic config placeholder with empty content.
"/etc/temporal/config/dynamicconfig/docker.yaml",
],
entrypoint = "/entrypoint.sh",
files = glob(["docker/*.sh"]) + [
"@com_github_dockerize//:dockerize",
],
symlinks = {
"/usr/bin/dockerize": "/dockerize",
},
tags = [
"manual", # Exclusion from presubmit and RBE as it requires docker.
"no-remote",
],
tars = [
"@com_github_temporal//:temporal",
"@com_github_temporal_cli//:temporal-cli",
],
user = "root",
workdir = "/etc/temporal",
)
# Docker image with Temporal UI
# Launch with TEMPORAL_ADDRESS set to Temporal server, defaults to localhost.
container_image(
name = "temporal-ui",
base = "@basealpine//image",
empty_dirs = [
"/etc/temporal/config",
],
entrypoint = "sh /etc/temporal/start-ui-server.sh",
files = [
"@com_github_dockerize//:dockerize",
],
symlinks = {
"/usr/bin/dockerize": "/dockerize",
},
tags = [
"manual", # Exclusion from presubmit and RBE as it requires docker.
"no-remote",
],
tars = [
"@com_github_temporal_ui//:temporalui-pkg",
],
user = "root",
workdir = "/etc/temporal",
)