Skip to content
Snippets Groups Projects
Commit 027fc687 authored by hallo's avatar hallo
Browse files

updated dockerfile to add automated service start

parent 11ee5313
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!16DLT component (and related) improvements
...@@ -10,3 +10,16 @@ COPY . /controller ...@@ -10,3 +10,16 @@ COPY . /controller
# Build gateway # Build gateway
WORKDIR /controller/src/dlt/gateway WORKDIR /controller/src/dlt/gateway
RUN ./gradlew build RUN ./gradlew build
EXPOSE 50051
RUN echo "#!/bin/sh" >> /runscript.sh
RUN echo "echo 195.37.154.24 peer0.org1.example.com >> /etc/hosts;\
echo 195.37.154.24 peer0.org2.example.com >> /etc/hosts;\
echo 195.37.154.24 orderer0.example.com >> /etc/hosts;" >> /runscript.sh
RUN echo "cd /controller/src/dlt/gateway; ./gradlew runServer" >> /runscript.sh
RUN chmod +x /runscript.sh
ENTRYPOINT ["sh", "/runscript.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment