FXH6MYROFLOFDKHQ5ETPFEXUQRFEAYMC5BDSFGM5GGL2B74UIBNQC
RUN git clone https://stevenrbrandt@bitbucket.org/eschnett/cactusamrex.git
WORKDIR /home/jovyan/cactusamrex
RUN curl -kLO https://raw.githubusercontent.com/gridaphobe/CRL/ET_2019_03/GetComponents
RUN chmod a+x GetComponents
RUN ./GetComponents --parallel azure-pipelines/amrex.th
WORKDIR /home/jovyan/cactusamrex/Cactus
RUN echo docker > /home/jovyan/.hostname
RUN ./simfactory/bin/sim setup-silent
COPY amrex.cfg ./
RUN ./simfactory/bin/sim build -j4 --thornlist ../azure-pipelines/amrex.th --optionlist amrex.cfg
RUN ./exe/cactus_sim ./repos/cactusamrex/AMReX/par/amrex.par
RUN mkdir -p /home/jovyan/bin
USER root
COPY amrex.cfg /amrex.cfg
COPY setmeup.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/setmeup.sh
USER jovyan
COPY Dockerfile /Dockerfile
CMD ["/usr/sbin/init"]
This sets up a docker environment for developing CactusAMReX.
To use the docker environment, first run:
docker-compose build
This will create the local image for you to use.
Next, you need to start your image running. To do this, run:
docker-compose up -d
Once the image is running, you can get a shell inside it using this command:
docker-compose exec -it cacrex bash
version: '2'
volumes:
homefs-cactusamrex:
services:
cactus-amrex:
build:
context: .
dockerfile: Dockerfile
privileged: true
image: cactusamrex
container_name: cacrex
user: jovyan
volumes:
- homefs-cactusamrex:/home/jovyan
cd
grep 'module load' .bashrc > /dev/null
if [ $? = 1 ]
then
echo module load mpi >> .bashrc
fi
source .bashrc
if [ ! -d cactusamrex ]
then
git clone https://stevenrbrandt@bitbucket.org/eschnett/cactusamrex.git
fi
cd /home/jovyan/cactusamrex
git pull
if [ ! -x GetComponents ]
then
curl -kLO https://raw.githubusercontent.com/gridaphobe/CRL/ET_2019_03/GetComponents
chmod a+x GetComponents
./GetComponents --parallel azure-pipelines/amrex.th
fi
mkdir -p /home/jovyan/cactusamrex/Cactus
cd /home/jovyan/cactusamrex/Cactus
echo docker > /home/jovyan/.hostname
if [ ! -r repos/simfactory2/mdb/machines/docker.ini ]
then
./simfactory/bin/sim setup-silent
fi
#COPY amrex.cfg ./
./simfactory/bin/sim build -j2 --thornlist ../azure-pipelines/amrex.th --optionlist /amrex.cfg
#./exe/cactus_sim ./repos/cactusamrex/AMReX/par/amrex.par