CentOS-based container for ALICE O2 development
1.8K
CentOS-based container for ALICE O2 development.
Supposedly runs aliBuild for ALICE O2 development on any docker-compatible system. Should be able to run simulations as well.
The container and the host machine share the /data/sw/alice directory.
Sucessfully build O2 and runs root in batch mode. See issues bellow.
Install and configure Docker.
Pull Alice O2 Development Docker image
$ docker pull rpez/aliceo2dev
Ensure that the workdir is owned by the current user.
$ sudo mkdir -p /data/sw/alice
$ sudo chown -R $USER /data/sw
Run the container
$ docker run -it -v /data/sw/alice:/data/sw/alice rpez/aliceo2dev
Get aliBuild
$ git clone https://github.com/alisw/alibuild
Build O2
$ aliBuild --defaults o2 build O2
Enter alienv:
$ alienv enter O2/latest-dev-o2
Enjoy
Note: Steps 5 to 7 must be executed inside the container started on step 4.
Install and configure Docker.
Download the ALICE-O2-Docker-dev image source-code repository
$ git clone https://github.com/rpezzi/ALICE-O2-Docker-dev.git
Build container
$ cd ALICE-O2-Docker-dev
$ ./build.sh
Ensure that Alice workdir is owned by the current user.
$ sudo mkdir -p /data/sw/alice
$ sudo chown -R $USER /data/sw
Run container with
$ ./run.sh
Build O2 with aliBuild
$ git clone https://github.com/alisw/alibuild
$ aliBuild --defaults o2 build O2
Enter alienv:
$ alienv enter O2/latest-dev-o2
Enjoy
Note: Steps 6 and 7 must be run inside the container started on step 5.
files on the host computer are usually owned by root when created by a Docker container. This limitation has been solved by adding setuser and wrapper scripts to the container. This will identify the owner of the workdir and execute all commands with the same UID.
cannot access X graphics server: root works only on batch mode within container: root -b
Content type
Image
Digest
Size
192.1 MB
Last updated
over 9 years ago
docker pull rpez/aliceo2dev