From 041ef6bed3764329ee0856310382078f0bac8d93 Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Mon, 28 Aug 2023 10:13:07 +0100 Subject: [PATCH] Add start script to Dockerfile --- .github/workflows/test_release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index e1c145d2..a21e19c3 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -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