PatrickPradier commented on code in PR #49: URL: https://github.com/apache/airavata-mft/pull/49#discussion_r955040170
########## docker/Dockerfile: ########## @@ -0,0 +1,31 @@ +FROM maven:3.8.6-jdk-11 + +RUN apt-get update -y +RUN apt-get install git -y + +RUN mkdir airavata +WORKDIR /airavata + +RUN git clone https://github.com/apache/airavata-custos.git +RUN git clone https://github.com/apache/airavata-data-lake.git +RUN git clone https://github.com/apache/airavata-mft.git + +WORKDIR /airavata/airavata-custos +RUN git checkout develop +RUN mvn install + +WORKDIR /airavata/airavata-mft/ +RUN ! mvn install --fail-at-end + +WORKDIR /airavata/airavata-data-lake/ +RUN ! mvn install --fail-at-end + +WORKDIR /airavata/airavata-mft/scripts +RUN ["./build.sh"] + +RUN touch ../airavata-mft/MFT-Agent-0.01/logs/airavata.log +RUN printf '#!/bin/bash\n_term() {\n./stop-consul.sh\n./stop-mft.sh\n}\ntrap _term SIGTERM\nif [[ "$1" == consul ]];then\n ./start-consul.sh linux\nfi\n./start-mft.sh\n./log.sh agent &\nchild=$!\nwait "$child"' > run.sh Review Comment: This part is a bit ugly, I could replace it by adding a run.sh script in the repository and . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
