-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathserver.Dockerfile
More file actions
67 lines (52 loc) · 1.8 KB
/
server.Dockerfile
File metadata and controls
67 lines (52 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ARG BASE_SERVER_IMAGE=temporalio/base-server:1.15.15
FROM ${BASE_SERVER_IMAGE} AS temporal-server
ARG TARGETARCH
ARG TEMPORAL_SHA=unknown
ARG TCTL_SHA=unknown
WORKDIR /etc/temporal
ENV TEMPORAL_HOME=/etc/temporal
EXPOSE 6933 6934 6935 6939 7233 7234 7235 7239
# TODO switch WORKDIR to /home/temporal and remove "mkdir" and "chown" calls.
RUN addgroup -g 1000 temporal && \
adduser -u 1000 -G temporal -D temporal && \
mkdir /etc/temporal/config && \
chown -R temporal:temporal /etc/temporal/config
USER temporal
# store component versions in the environment
ENV TEMPORAL_SHA=${TEMPORAL_SHA} \
TCTL_SHA=${TCTL_SHA}
# binaries
COPY ./build/${TARGETARCH}/tctl \
./build/${TARGETARCH}/tctl-authorization-plugin \
./build/${TARGETARCH}/temporal-server \
./build/${TARGETARCH}/temporal \
/usr/local/bin/
# configs
COPY ./temporal/config/dynamicconfig/docker.yaml /etc/temporal/config/dynamicconfig/docker.yaml
COPY ./temporal/docker/config_template.yaml /etc/temporal/config/config_template.yaml
# scripts
COPY ./docker/entrypoint.sh \
./docker/start-temporal.sh \
/etc/temporal/
### Server release image ###
FROM temporal-server AS server
ENTRYPOINT ["/etc/temporal/entrypoint.sh"]
### Server auto-setup image ###
##### Admin Tools #####
# This is injected as a context via the bakefile so we don't take it as an ARG
FROM temporaliotest/admin-tools AS admin-tools
FROM temporal-server AS auto-setup
WORKDIR /etc/temporal
# binaries
COPY ./build/${TARGETARCH}/temporal-cassandra-tool \
./build/${TARGETARCH}/temporal-sql-tool \
/usr/local/bin/
# configs
COPY ./temporal/schema /etc/temporal/schema
# scripts
COPY ./docker/entrypoint.sh \
./docker/start-temporal.sh \
./docker/auto-setup.sh \
/etc/temporal/
ENTRYPOINT ["/etc/temporal/entrypoint.sh"]
CMD ["autosetup"]