Skip to content

Commit

Permalink
feat: run entrypoint as s6 supervised service
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Riben <matt.riben@swirldslabs.com>
  • Loading branch information
matteriben committed Oct 10, 2024
1 parent 872ca1a commit 818a5f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ COPY sdk/data/lib/* /opt/hgcapp/services-hedera/HapiApp2.0/data/lib/
# Add the entrypoint script
ADD entrypoint.sh /opt/hgcapp/services-hedera/HapiApp2.0/

# Add s6-rc configuration
COPY etc/s6-overlay/s6-rc.d /etc/s6-overlay/s6-rc.d/

# Ensure proper file permissions
RUN chmod -R +x /opt/hgcapp/services-hedera/HapiApp2.0/entrypoint.sh && \
chown -R 2000:2000 /opt/hgcapp/services-hedera/HapiApp2.0
Expand Down Expand Up @@ -294,4 +297,3 @@ EXPOSE 50111/tcp 50211/tcp 50212/tcp
USER 2000
WORKDIR "/opt/hgcapp"
ENTRYPOINT ["/init"]
CMD ["/opt/hgcapp/services-hedera/HapiApp2.0/entrypoint.sh"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/opt/hgcapp/services-hedera/HapiApp2.0/entrypoint.sh

0 comments on commit 818a5f5

Please sign in to comment.