Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ethz
isdc
resources
sim
README.md
__init__.py
backup_main.py
drs_run.py
prepare.py
runinfo.py
runinfo2runstatus.py
runstatus.py
show_runstatus.py
tools.py

README.md

Production

Install Java 8

mkdir java8
cd java8

go to oracle java downloads

and download:

  • jdk-8u144-linux-x64.tar.gz for Linux x64

go to maven

and download:

  • apache-maven-3.5.0-bin.tar.gz
ls
apache-maven-3.5.0-bin.tar.gz    jdk-8u144-linux-x64.tar.gz

untar both files:

tar -zxvf apache-maven-3.5.0-bin.tar.gz
tar -zxvf jdk-8u144-linux-x64.tar.gz

now the java8 directory looks like this

ls
apache-maven-3.5.0  apache-maven-3.5.0-bin.tar.gz  jdk1.8.0_144  jdk-8u144-linux-x64.tar.gz

Now set the java and maven path in your .bashrc

# JAVA HOME
#----------
export JAVA_HOME='/net/big-tank/POOL/projects/fact/smueller/java8/jdk1.8.0_144'
export PATH=$JAVA_HOME/bin/:$PATH

export MVN_HOME='/net/big-tank/POOL/projects/fact/smueller/java8/apache-maven-3.5.0'
export PATH=$MVN_HOME/bin:$PATH

Install fact-tools

Download from github:

git clone https://github.com/fact-project/fact-tools.git
cd fact-tools

Checkout the photon-stream pass4 vesion of fact-tools:

git checkout 8a96abd8dc9e54ebfaedff97b093be72255d5b1f

Build fact-tools:

mvn package

This also runs the unit tests and should end with:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Install photo-stream

git clone https://github.com/fact-project/photon_stream.git
pip install -e photon_stream/

Publish on web server

https://ihp-pc41.ethz.ch/public/phs/

login to ihp-pc41 as user: factshifthelper

stop the running nginx webserver docker container

docker stop data_nginx

remove the former container

docker rm data_nginx

apply changes as needed to the config files in:

  • index.html
  • start_nginx.sh
  • default.conf

build the updated docker container:

./start_nginx.sh