FXH6MYROFLOFDKHQ5ETPFEXUQRFEAYMC5BDSFGM5GGL2B74UIBNQC RUN git clone https://stevenrbrandt@bitbucket.org/eschnett/cactusamrex.gitWORKDIR /home/jovyan/cactusamrexRUN curl -kLO https://raw.githubusercontent.com/gridaphobe/CRL/ET_2019_03/GetComponentsRUN chmod a+x GetComponentsRUN ./GetComponents --parallel azure-pipelines/amrex.thWORKDIR /home/jovyan/cactusamrex/CactusRUN echo docker > /home/jovyan/.hostname
RUN ./simfactory/bin/sim setup-silentCOPY amrex.cfg ./RUN ./simfactory/bin/sim build -j4 --thornlist ../azure-pipelines/amrex.th --optionlist amrex.cfgRUN ./exe/cactus_sim ./repos/cactusamrex/AMReX/par/amrex.par
RUN mkdir -p /home/jovyan/binUSER rootCOPY amrex.cfg /amrex.cfgCOPY setmeup.sh /usr/local/bin/RUN chmod 755 /usr/local/bin/setmeup.shUSER jovyanCOPY Dockerfile /DockerfileCMD ["/usr/sbin/init"]
This sets up a docker environment for developing CactusAMReX.To use the docker environment, first run:docker-compose buildThis will create the local image for you to use.Next, you need to start your image running. To do this, run:docker-compose up -dOnce 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: Dockerfileprivileged: trueimage: cactusamrexcontainer_name: cacrexuser: jovyanvolumes:- homefs-cactusamrex:/home/jovyan
cdgrep 'module load' .bashrc > /dev/nullif [ $? = 1 ]thenecho module load mpi >> .bashrcfisource .bashrcif [ ! -d cactusamrex ]thengit clone https://stevenrbrandt@bitbucket.org/eschnett/cactusamrex.gitficd /home/jovyan/cactusamrexgit pullif [ ! -x GetComponents ]thencurl -kLO https://raw.githubusercontent.com/gridaphobe/CRL/ET_2019_03/GetComponentschmod a+x GetComponents./GetComponents --parallel azure-pipelines/amrex.thfimkdir -p /home/jovyan/cactusamrex/Cactuscd /home/jovyan/cactusamrex/Cactusecho docker > /home/jovyan/.hostnameif [ ! -r repos/simfactory2/mdb/machines/docker.ini ]then./simfactory/bin/sim setup-silentfi#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