Bläddra i källkod

更新 'entrypoint.sh'

robert 1 år sedan
förälder
incheckning
77f4fd404c
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      entrypoint.sh

+ 7 - 0
entrypoint.sh

@@ -3,6 +3,13 @@
 set -e
 set -o pipefail
 
+echo 'export JAVA_HOME=/usr/java/jdk1.8.0_271' >> /etc/profile
+echo 'export MAVEN_HOME=/app/soft/maven3.0.3' >> /etc/profile
+echo 'export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib' >> /etc/profile
+echo 'export PATH=$MAVEN_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin' >> /etc/profile
+echo "ulimit -n 65535" >> /etc/profile
+echo "ulimit -u 65535" >> /etc/profile
+source /etc/profile
 mkdir -p /data/wapage/log/ea_video_adv
 
 exec "$@"