标签:export pytho cloud mode apache rgb always rip source
1,将JDK和tomcat放到具体文件夹,并解压。
#路径/home/wuzb/XBRL/tools/
tar -xzvf /home/wuzb/XBRL/tools/jdk-8u72-linux-x64.tar.gz
unzip apache-tomcat-8.0.35.zip
docker run -dit --name jcbp_test -v /home/wuzb/XBRL:/home daocloud.io/library/centos /bin/bash
docker exec -ti jcbp_test /bin/bash
mkdir /usr/local/java
cp /home/tools/jdk-8u72-linux-x64.tar.gz /usr/local/java
cd /usr/local/java
tar -xzvf jdk-8u72-linux-x64.tar.gz
rm -f jdk-8u72-linux-x64.tar.gz
sed -i ‘/done/ a export PATH=$PATH:$JAVA_HOME/bin‘ /etc/profile
sed -i ‘/done/ a export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ‘ /etc/profile
sed -i ‘/done/ a export JAVA_HOME=/usr/local/java/jdk1.8.0_72‘ /etc/profile
source /etc/profile
java -version
docker build --rm -t jcbp:0.1 -f /home/wuzb/XBRL/dockerfiles/dockerfiles_jcbp .
docker build --rm -t jcbp:0.1 -f dockerfiles_jcbp .
docker run -dti --name jcbp1 --rm -v /home/wuzb/XBRL:/home jcbp:0.1 /bin/bash
docker run -dti --name jcbp1 --rm -v /home/wuzb/XBRL:/usr/local/java jcbp:0.1
source /etc/profile
./home/jcbp/bin/run.sh
docker run -dti -p 8000:8080 --name jcbp1 --restart always -v /home/wuzb/XBRL:/home jcbp:0.1
1 2 | docker run -dit --name jcbp_test - v /home/wuzb/XBRL : /home daocloud.io /library/centos /bin/bash docker exec -ti jcbp_test /bin/bash |
标签:export pytho cloud mode apache rgb always rip source
原文地址:http://www.cnblogs.com/kakarott/p/37f15d1d946e3668161c3e1edbc0b214.html