-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu_with_fiji.rec
More file actions
27 lines (23 loc) · 756 Bytes
/
ubuntu_with_fiji.rec
File metadata and controls
27 lines (23 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Bootstrap:docker
From:ubuntu:latest
%runscript
export MYHOME=/home/user
$MYHOME/Fiji.app/ImageJ-linux64 "$@"
%post
export MYHOME=/home/user
mkdir $MYHOME
apt-get update
apt-get -y install wget unzip xvfb libxrender1 libxtst6 libxi6
apt-get clean
wget https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
unzip fiji-linux64.zip -d $MYHOME
rm fiji-linux64.zip
export PATH=$MYHOME/Fiji.app:$PATH
echo "export PATH=$MYHOME/Fiji.app:$PATH" >> "$SINGULARITY_ENVIRONMENT"
cd $MYHOME
echo 'print("Hello World!");' > helloWorld.ijm
$MYHOME/Fiji.app/ImageJ-linux64 --update update
%test
export MYHOME=/home/user
export PATH=$MYHOME/Fiji.app:$PATH
$MYHOME/Fiji.app/ImageJ-linux64 --headless -macro $MYHOME/helloWorld.ijm