Commit 694d6b6a authored by SAPONE Alann's avatar SAPONE Alann

clear cache

parent 385585f4
**/target
keystore
.settings
.svn
Fixtures-generator
ExternalLibraries
.project
\ No newline at end of file
FROM debian:8.3
MAINTAINER Anthony K GROSS<anthony.gross@lam.fr>
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -y openjdk-7-jdk
RUN apt-get install -y subversion maven2
RUN apt-get install -y texlive-full --fix-missing
WORKDIR /etc42/
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
etc42:
image: lam_compiler_etc42:latest
volumes:
- ./src/:/etc42/
environment:
SVN_USER: "agross"
SVN_PASS: "kkuet47"
#!/bin/bash
set -e
svn co --username=$SVN_USER --password=$SVN_PASS https://svn.lam.fr/repos/etc/trunk etc42
svn co --username=$SVN_USER --password=$SVN_PASS https://svn.lam.fr/repos/volibrary/Java/Vo\ drag\ and\ drop/trunk volibrary
svn co --username=$SVN_USER --password=$SVN_PASS https://svn.lam.fr/repos/javatools/CeSAMUtilsJ/trunk CeSAMUtilsJ
svn co --username=$SVN_USER --password=$SVN_PASS https://svn.lam.fr/repos/javatools/CeSAMSamp/trunk CeSAMSamp
echo "CeSAMSamp/ExternalLibraries"
cd CeSAMSamp/ExternalLibraries/
chmod +x installInRepository
./installInRepository
cd ../..
echo "etc42/ExternalLibraries/"
cd etc42/ExternalLibraries/
chmod +x installInRepository
./installInRepository
cd ../..
echo "============ > CeSAMSamp"
cd CeSAMSamp/
mvn install -DskipTests
cd ..
echo "============ > CeSAMUtilsJ"
cd CeSAMUtilsJ/
mvn install -DskipTests
cd ..
echo "============ > Volibrary"
cd volibrary/
mvn install -DskipTests
cd ..
echo "============ > Etc42"
cd etc42/
echo "====== > Install "
mvn install -DskipTests
echo "====== > Clean "
mvn clean -DskipTests
echo "====== > Package "
mvn package -DskipTests
cd ..
mkdir target -p
cp etc42/ETC-Jar/target/*.jar target/ -rf
cp etc42/ETC-Documentation/target/*.pdf target/ -rf
cp etc42/ETC-WebStart/target/jnlp target/ -rf
rm CeSAMSamp -Rf
rm CeSAMUtilsJ -Rf
rm volibrary -Rf
rm etc42 -Rf
#cp /*.jar /etc42/
\ No newline at end of file
#/bin/bash
docker build --file="runner/Dockerfile" --tag="lam_runner_etc42:latest" runner/.
docker build --file="compiler/Dockerfile" --tag="lam_compiler_etc42:latest" compiler/.
\ No newline at end of file
FROM debian:8.3
MAINTAINER Anthony K GROSS<anthony.gross@lam.fr>
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -y openjdk-7-jdk
RUN mkdir /ETC42
RUN mkdir /MY_HOST
ADD ETC-Jar.jar /ETC42/
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV ETC_HOME_DIR /ETC42/.etc
ENTRYPOINT ["/entrypoint.sh"]
\ No newline at end of file
#!/bin/bash
set -e
java -Detc.home=$ETC_HOME_DIR -jar /ETC42/ETC-Jar.jar
#/bin/bash
set -e
if ! type "brew" > /dev/null; then
echo "Installing Brew ..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Booting boot2docker"
eval "$(docker-machine env default)"
chmod +x create-images.sh
./create-images.sh
if [ ! -z "$1" ]; then
echo "Custom path existing"
if [ -d "$1" ]; then
ETC_HOME_DIR=$1
else
echo "$1 isn't a valid directory"
exit
fi
fi
PID=$(ps -A | grep -m1 XQuartz | grep -v "grep -m1 XQuartz" | awk '{print $1}')
if [ ! -z "$PID" ]; then
echo "Killing XQuartz on running ..."
sudo kill -9 $PID
fi
PID=$(ps -A | grep -m1 socat | grep -v "grep -m1 socat" | awk '{print $1}')
if [ ! -z "$PID" ]; then
echo "Killing Socat on running ..."
sudo kill -9 $PID
fi
echo "Installing Cask for Brew ..."
brew install caskroom/cask/brew-cask
echo "Installing Socat ..."
brew install socat
echo "Installing XQuartz ..."
brew cask install xquartz
echo "Launching XQuartz"
open -a XQuartz
echo "Launching Socat"
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &
LOCAL_IP=$(ifconfig vboxnet0 | grep 'inet' | cut -d" " -f2)
echo "===================================================================="
echo "In X11 preferences in XQuartz, in the security tab, check both boxes"
echo "===================================================================="
echo "Launching ETC42 image (Docker)"
if [ ! -z "$ETC_HOME_DIR" ]; then
echo "ETC42 data will be saved into $ETC_HOME_DIR"
docker run -e DISPLAY=$LOCAL_IP:0 -v $ETC_HOME_DIR:/ETC42/.etc/ -v /:/MY_HOST lam_runner_etc42:latest
else
echo "Data won't be persisted"
docker run -e DISPLAY=$LOCAL_IP:0 -v /:/MY_HOST lam_runner_etc42:latest
fi
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>