Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions clients/lighthouse-bn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM sigp/lighthouse:$branch
ADD lighthouse_bn.sh /lighthouse_bn.sh
RUN chmod +x /lighthouse_bn.sh

# TODO: output accurate client version
RUN echo "latest" > /version.txt
ADD lighthouse_version.sh /lighthouse_version.sh
RUN chmod +x /lighthouse_version.sh

RUN /lighthouse_version.sh > /version.txt

ENTRYPOINT ["/lighthouse_bn.sh"]
6 changes: 6 additions & 0 deletions clients/lighthouse-bn/lighthouse_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Immediately abort the script on any error encountered
set -e

lighthouse --version | head -1 | sed "s/ /\//g"
6 changes: 4 additions & 2 deletions clients/lighthouse-vc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM sigp/lighthouse:$branch
ADD lighthouse_vc.sh /lighthouse_vc.sh
RUN chmod +x /lighthouse_vc.sh

# TODO: output accurate client version
RUN echo "latest" > /version.txt
ADD lighthouse_version.sh /lighthouse_version.sh
RUN chmod +x /lighthouse_version.sh

RUN /lighthouse_version.sh > /version.txt

ENTRYPOINT ["/lighthouse_vc.sh"]
6 changes: 6 additions & 0 deletions clients/lighthouse-vc/lighthouse_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Immediately abort the script on any error encountered
set -e

lighthouse --version | head -1 | sed "s/ /\//g"