Fixes docker image. (#448)
This commit is contained in:
parent
8c232b6759
commit
db7c4b5811
|
@ -11,7 +11,7 @@ RUN make -j4 NIM_PARAMS="-d:disableMarchNative -d:codex_enable_api_debug_peers=t
|
||||||
|
|
||||||
FROM ubuntu:lunar-20230415
|
FROM ubuntu:lunar-20230415
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN apt-get update && apt-get install -y libgomp1 bash
|
RUN apt-get update && apt-get install -y libgomp1 bash net-tools
|
||||||
COPY --from=builder /src/build/codex ./
|
COPY --from=builder /src/build/codex ./
|
||||||
COPY --from=builder /src/docker/startCodex.sh ./
|
COPY --from=builder /src/docker/startCodex.sh ./
|
||||||
RUN chmod +x ./startCodex.sh
|
RUN chmod +x ./startCodex.sh
|
||||||
|
|
|
@ -7,7 +7,7 @@ echo "Starting Codex node$NAME"
|
||||||
args=""
|
args=""
|
||||||
|
|
||||||
## Using local ip as NAT
|
## Using local ip as NAT
|
||||||
nat_addr=$(ifconfig eth0 | awk '/inet addr/ {gsub("addr:", "", $2); print $2}')
|
nat_addr=$(ifconfig eth0 | awk '/inet/ {gsub("addr:", "", $2); print $2}')
|
||||||
echo "Local IP: $nat_addr"
|
echo "Local IP: $nat_addr"
|
||||||
|
|
||||||
# Required arguments
|
# Required arguments
|
||||||
|
@ -112,12 +112,10 @@ if [ -n "$CACHE_SIZE" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ethereum persistence
|
# Ethereum persistence
|
||||||
if [ -n "$ETH_PROVIDER" ] && [ -n "$ETH_ACCOUNT" ] && [ -n "$ETH_MARKETPLACE_ADDRESS" ]; then
|
if [ -n "$ETH_PROVIDER" ]; then
|
||||||
echo "Persistence enabled"
|
echo "Provider: $ETH_PROVIDER"
|
||||||
args="$args --persistence"
|
|
||||||
args="$args --eth-provider=$ETH_PROVIDER"
|
args="$args --eth-provider=$ETH_PROVIDER"
|
||||||
args="$args --eth-account=$ETH_ACCOUNT"
|
fi
|
||||||
# args="$args --validator"
|
|
||||||
|
|
||||||
if [ -n "$ETH_ACCOUNT" ]; then
|
if [ -n "$ETH_ACCOUNT" ]; then
|
||||||
echo "Ethereum account: $ETH_ACCOUNT"
|
echo "Ethereum account: $ETH_ACCOUNT"
|
||||||
|
|
Loading…
Reference in New Issue