Provide a backwards-compatible sym link in the nimbus-eth2 docker file image

This is needed because commit 0be57eec6e
changed the location of the nimbus_beacon_node executable within the
container file system. For users, not relying on the official entrypoint
this was a breaking change.
This commit is contained in:
Zahary Karadjov 2022-12-23 19:28:46 +02:00
parent 5025990d9e
commit f6a5a5b1da
No known key found for this signature in database
GPG Key ID: C1F42EAFF38D570F
3 changed files with 15 additions and 0 deletions

View File

@ -11,5 +11,10 @@ USER user
STOPSIGNAL SIGINT
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
RUN mkdir -p /home/user/nimbus-eth2/build && \
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
chown -R user:user /home/user/nimbus-eth2/build
WORKDIR "/home/user/"
ENTRYPOINT ["/home/user/nimbus_beacon_node"]

View File

@ -15,5 +15,10 @@ USER user
STOPSIGNAL SIGINT
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
RUN mkdir -p /home/user/nimbus-eth2/build && \
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
chown -R user:user /home/user/nimbus-eth2/build
WORKDIR "/home/user/"
ENTRYPOINT ["/home/user/nimbus_beacon_node"]

View File

@ -15,5 +15,10 @@ USER user
STOPSIGNAL SIGINT
COPY "nimbus-eth2/build/nimbus_beacon_node" "/home/user/nimbus_beacon_node"
RUN mkdir -p /home/user/nimbus-eth2/build && \
ln -s /home/user/nimbus_beacon_node /home/user/nimbus-eth2/build/nimbus_beacon_node && \
chown -R user:user /home/user/nimbus-eth2/build
WORKDIR "/home/user/"
ENTRYPOINT ["/home/user/nimbus_beacon_node"]