6EY6HQW65NVGKRGVD5X6VTX67URNQL4HNUUKSUXBSNV7CNY7JOFQC
ORZXVE46Y4I3JUY76LXJGOATXKWNB64Y66NYL5DOYVNANN7PGOUQC
6ALSUUSEFIDYC57DEVOR5IPIJGJ64SYS4RJ2Q2RACEAYFWH3RD7AC
ULG227G2VMOOSDSKHY36QQQGEABGXZIX2B3JA4YIBS6HCVDVJ7IAC
OXLI7BTV2KMHHUKRMYPC576P3IOSWWTHFYNASRIXIDJY4YXII4YAC
WKFYNYHZIPPSDL7K35JYHUFT7KPHDBPXCDYAM3LYKI45Y43KEQGAC
HNQLJR6ZWME6VBJ2Y7PSENLJPXC7INSS7NC2CKIWQAC776CQ74TQC
# Add user "cactus" with sudo privileges
RUN apt-get update && apt-get -y install sudo && rm -rf /var/lib/apt/lists/*
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
# Don't use /home since this can lead to ambiguities with Singularity
RUN useradd -G sudo -m -s /bin/bash -d /cactus cactus
USER cactus
RUN mkdir /cactus
RUN sudo apt-get update && sudo apt-get -y install build-essential g++ gfortran libopenmpi-dev perl pkg-config python wget && sudo rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -y install build-essential g++ gfortran libopenmpi-dev perl pkg-config python wget && rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz && sudo tar xzf cmake-3.14.5-Linux-x86_64.tar.gz -C /usr/local --strip-components=1
RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz && tar xzf cmake-3.14.5-Linux-x86_64.tar.gz -C /usr/local --strip-components=1 && rm cmake-3.14.5-Linux-x86_64.tar.gz
RUN wget https://github.com/AMReX-Codes/amrex/archive/19.07.tar.gz && tar xzf 19.07.tar.gz && cd amrex-19.07 && mkdir build && cd build && cmake -DENABLE_OMP=ON -DCMAKE_INSTALL_PREFIX=/cactus/amrex .. && make -j2 && make -j2 install
RUN wget https://github.com/AMReX-Codes/amrex/archive/19.07.tar.gz && tar xzf 19.07.tar.gz && cd amrex-19.07 && mkdir build && cd build && cmake -DENABLE_OMP=ON -DCMAKE_INSTALL_PREFIX=/cactus/amrex .. && make -j2 && make -j2 install && cd ../.. && rm -rf amrex-19.07
cp defs.local.init Cactus/simfactory/etc
cp docker.ini Cactus/simfactory/mdb/machines
cp ubuntu.cfg Cactus/simfactory/mdb/optionlists
cp docker.sub Cactus/simfactory/mdb/submitscripts
cp docker.run Cactus/simfactory/mdb/runscripts
cp /cactus/defs.local.init Cactus/simfactory/etc
cp /cactus/docker.ini Cactus/simfactory/mdb/machines
cp /cactus/ubuntu.cfg Cactus/simfactory/mdb/optionlists
cp /cactus/docker.sub Cactus/simfactory/mdb/submitscripts
cp /cactus/docker.run Cactus/simfactory/mdb/runscripts