Skip to content

Commit

Permalink
Customizable docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelDD1 committed May 26, 2023
1 parent 5d18be4 commit c958bcb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ FROM debian:bullseye-slim

RUN \
apt-get update && \
apt-get install -y curl envsubst && \
apt-get install -y curl gettext-base && \
rm -rf /var/lib/apt/lists && \
groupadd -r avail && \
useradd --no-log-init -r -g avail avail
Expand Down
18 changes: 9 additions & 9 deletions config.yaml.template
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
log_level = ${LC_LOG_LEVEL}
http_server_host = ${LC_HTTP_SERVER_HOST}
http_server_port = ${LC_HTTP_SERVER_PORT}
secret_key = { seed = ${LC_SECRET_KEY_SEED} }
log_level = "${LC_LOG_LEVEL}"
http_server_host = "${LC_HTTP_SERVER_HOST}"
http_server_port = "${LC_HTTP_SERVER_PORT}"
secret_key = { seed = "${LC_SECRET_KEY_SEED}" }

libp2p_seed = ${LC_LIBP2P_SEED}
libp2p_port = ${LC_LIBP2P_PORT}
libp2p_port = "${LC_LIBP2P_PORT}"

full_node_rpc = [ ${LC_FULL_NODE_RPC} ]
full_node_ws = [ ${LC_FULL_NODE_WS} ]
full_node_rpc = [ "${LC_FULL_NODE_RPC}" ]
full_node_ws = [ "${LC_FULL_NODE_WS}" ]
app_id = ${LC_APP_ID}
confidence = ${LC_CONFIDENCE}
avail_path = ${LC_AVAIL_PATH}
avail_path = "${LC_AVAIL_PATH}"
prometheus_port = ${LC_PROMETHEUS_PORT}
bootstraps = [ ${LC_BOOTSTRAPS} ]
bootstraps = [${LC_BOOTSTRAPS}]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ da_bin=/da/bin/avail-light
echo "Generate config from template..."
envsubst < /da/config.yaml.template > /tmp/config.yaml

echo "Generated confing at `/tmp/config.yaml`"
echo "Generated confing at '/tmp/config.yaml'"
echo "===BEGIN==="
cat /tmp/config.yaml
echo "===END==="
Expand Down

0 comments on commit c958bcb

Please sign in to comment.