final touches
Change-Id: I8fcc986f71f592507dc3f35ce4352647da46d461
This commit is contained in:
parent
76be9e6efd
commit
f89e030c3f
2
Makefile
2
Makefile
@ -202,7 +202,7 @@ images: multinode-image satellite-image storagenode-image versioncontrol-image #
|
||||
echo Built version: ${TAG}
|
||||
|
||||
.PHONY: multinode-image
|
||||
satellite-image: multinode_linux_arm multinode_linux_arm64 multinode_linux_amd64 ## Build multinode Docker image
|
||||
multinode-image: multinode_linux_arm multinode_linux_arm64 multinode_linux_amd64 ## Build multinode Docker image
|
||||
${DOCKER_BUILD} --pull=true -t storjlabs/multinode:${TAG}${CUSTOMTAG}-amd64 \
|
||||
-f cmd/multinode/Dockerfile .
|
||||
${DOCKER_BUILD} --pull=true -t storjlabs/multinode:${TAG}${CUSTOMTAG}-arm32v6 \
|
||||
|
@ -8,11 +8,9 @@ FROM ${DOCKER_ARCH:-amd64}/alpine
|
||||
ARG TAG
|
||||
ARG GOARCH
|
||||
ENV GOARCH ${GOARCH}
|
||||
|
||||
ENV CONF_PATH=/root/.local/storj/multinode
|
||||
EXPOSE 15002
|
||||
WORKDIR /app
|
||||
VOLUME /root/.local/storj/multinode
|
||||
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY release/${TAG}/multinode_linux_${GOARCH:-amd64} /app/multinode
|
||||
COPY cmd/multinode/entrypoint /entrypoint
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
|
11
cmd/multinode/entrypoint
Normal file → Executable file
11
cmd/multinode/entrypoint
Normal file → Executable file
@ -1,9 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -f "${CONF_PATH}/config.yaml" ]]; then
|
||||
./multinode setup
|
||||
if [[ ! -f "/app/config/config.yaml" ]]; then
|
||||
./multinode setup --config-dir config --identity-dir identity
|
||||
fi
|
||||
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config ${CONF_PATH} --console.address=:15002"
|
||||
exec ./multinode run $RUN_PARAMS "$@"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config-dir config"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --identity-dir identity"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --console.address=:15002"
|
||||
|
||||
exec ./multinode run $RUN_PARAMS "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user