entrypoint.sh 524 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. set -o pipefail
  4. echo 'export JAVA_HOME=/usr/java/jdk1.8.0_271' >> /etc/profile
  5. echo 'export MAVEN_HOME=/app/soft/maven3.0.3' >> /etc/profile
  6. echo 'export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib' >> /etc/profile
  7. echo 'export PATH=$MAVEN_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin' >> /etc/profile
  8. echo "ulimit -n 65535" >> /etc/profile
  9. echo "ulimit -u 65535" >> /etc/profile
  10. source /etc/profile
  11. mkdir -p /data/wapage/log/ea_video_adv
  12. mkdir -p /data/image/eachat
  13. exec "$@"