Skip to content

Commit

Permalink
Add start script to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Aug 28, 2023
1 parent b8c0af0 commit 041ef6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
&& tar -xzf era_test_node-v0.1.0-x86_64-unknown-linux-gnu.tar.gz \
&& mv era_test_node /usr/local/bin/ \
&& rm era_test_node-v0.1.0-x86_64-unknown-linux-gnu.tar.gz
EXPOSE 8011
ENTRYPOINT ["era_test_node", "run"]
RUN printf '#!/bin/bash\nsocat TCP-LISTEN:"8011",fork,reuseaddr TCP:127.0.0.1:3051 &\nera_test_node --port 3051 run &\nwait' >> start_script.sh
RUN chmod +x /start_script.sh
ENTRYPOINT ["/start_script.sh"]
''' | docker build -t era_test_node_image -
- name: Run era_test_node_image Docker container
Expand Down

0 comments on commit 041ef6b

Please sign in to comment.