Skip to content

Commit

Permalink
Change printf to echo for start_script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Aug 28, 2023
1 parent 041ef6b commit 329e82c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ 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
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 echo '#!/bin/bash' >> start_script.sh
RUN echo 'socat TCP-LISTEN:"8011",fork,reuseaddr TCP:127.0.0.1:3051 &' >> start_script.sh
RUN echo 'era_test_node --port 3051 run &' >> start_script.sh
RUN echo 'wait' >> start_script.sh
RUN chmod +x /start_script.sh
ENTRYPOINT ["/start_script.sh"]
''' | docker build -t era_test_node_image -
Expand Down

0 comments on commit 329e82c

Please sign in to comment.