File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM golang:1.8
2+
3+ ADD . /go/src/github.com/google/trillian
4+ WORKDIR /go/src/github.com/google/trillian
5+
6+ RUN go get -v ./server/trillian_log_server
7+
8+ ENV DB_USER=test \
9+ DB_PASSWORD=zaphod \
10+ DB_DATABASE=test \
11+ DB_HOST=127.0.0.0:3306
12+
13+ ENV RPC_HOST=localhost \
14+ RPC_PORT=8090 \
15+ HOST=0.0.0.0 \
16+ HTTP_PORT=8091
17+
18+ ENV DUMP_METRICS 0s
19+
20+ ENTRYPOINT /go/bin/trillian_log_server \
21+ --mysql_uri="${DB_USER}:${DB_PASSWORD}@tcp(${DB_HOST})/${DB_DATABASE}" \
22+ --rpc_endpoint="$RPC_HOST:$RPC_PORT" \
23+ --http_endpoint="$HTTP_HOST:$HTTP_PORT" \
24+ --dump_metrics_interval="$DUMP_METRICS" \
25+ --logtostderr
26+
27+ EXPOSE $RPC_PORT
28+ EXPOSE $HTTP_PORT
29+
30+ HEALTHCHECK --interval=5m --timeout=3s \
31+ CMD curl -f http://localhost:$HTTP_PORT/debug/vars || exit 1
Original file line number Diff line number Diff line change 1+ FROM golang:1.8
2+
3+ ENV DB_USER=test \
4+ DB_PASSWORD=zaphod \
5+ DB_DATABASE=test \
6+ DB_HOST=127.0.0.0:3306
7+
8+ ENV HOST=0.0.0.0 \
9+ HTTP_PORT=8091
10+
11+ ENV SEQUENCER_GUARD_WINDOW=0s \
12+ DUMP_METRICS=0s \
13+ FORCE_MASTER=true
14+
15+
16+ ADD . /go/src/github.com/google/trillian
17+ WORKDIR /go/src/github.com/google/trillian
18+
19+ RUN go get -v ./server/trillian_log_signer
20+
21+ # Run the outyet command by default when the container starts.
22+ ENTRYPOINT /go/bin/trillian_log_signer \
23+ --mysql_uri="${DB_USER}:${DB_PASSWORD}@tcp(${DB_HOST})/${DB_DATABASE}" \
24+ --http_endpoint="$HOST:$HTTP_PORT" \
25+ --dump_metrics_interval="$DUMP_METRICS" \
26+ --sequencer_guard_window="$SEQUENCER_GUARD_WINDOW" \
27+ --force_master="$FORCE_MASTER"
28+
29+ EXPOSE $HTTP_PORT
30+
31+ HEALTHCHECK --interval=5m --timeout=3s \
32+ CMD curl -f http://localhost:$HTTP_PORT/debug/vars || exit 1
You can’t perform that action at this time.
0 commit comments