Export in bashrc
This commit is contained in:
parent
e7050f2e42
commit
7c242da452
@ -6,8 +6,7 @@ RUN apt-get update; apt-get install -y git wget;
|
|||||||
|
|
||||||
RUN cd /root; wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz; wget http://mirror.navercorp.com/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
|
RUN cd /root; wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz; wget http://mirror.navercorp.com/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
|
||||||
|
|
||||||
RUN echo "export JAVA_HOME=/root/jdk-11" \
|
RUN echo "\n\nexport JAVA_HOME=/root/jdk-11\nexport PATH=$PATH:/root/jdk-11/bin:/root/apache-maven-3.6.1/bin" > /root/.bashrc
|
||||||
echo "export PATH=$PATH:/root/jdk-11/bin:/root/apache-maven-3.6.1/bin"
|
|
||||||
|
|
||||||
RUN cd /root; tar -xsvf openjdk-11+28_linux-x64_bin.tar.gz; tar -xsvf apache-maven-3.6.1-bin.tar.gz
|
RUN cd /root; tar -xsvf openjdk-11+28_linux-x64_bin.tar.gz; tar -xsvf apache-maven-3.6.1-bin.tar.gz
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@ rm -rdf /root/nlp
|
|||||||
git clone https://git.sanchezm.fr/mathieu/CAU-NLP-Spring-2019-PQ-Man-Server.git /root/nlp
|
git clone https://git.sanchezm.fr/mathieu/CAU-NLP-Spring-2019-PQ-Man-Server.git /root/nlp
|
||||||
cd /root/nlp/CAu_NLP_2019
|
cd /root/nlp/CAu_NLP_2019
|
||||||
|
|
||||||
/root/apache-maven-3.6.1/bin/mvn assembly:assembly
|
mvn assembly:assembly
|
||||||
|
|
||||||
/root/jdk-11/bin/java -jar target/CAu_NLP_2019-1.0-SNAPSHOT-jar-with-dependencies.jar
|
java -jar target/CAu_NLP_2019-1.0-SNAPSHOT-jar-with-dependencies.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user