forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: deploy-container | ||
|
||
on: | ||
push: | ||
branches: [ neuland_new_calibration ] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'true' | ||
|
||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# username: ${{ vars.DOCKER_USERNAME }} | ||
# password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
# - name: Build and push | ||
# uses: docker/build-push-action@v6 | ||
# with: | ||
# push: true | ||
# context: util/container | ||
# tags: ${{ vars.DOCKER_USERNAME }}/r3bdev:test | ||
|
||
- name: build apptainer | ||
run: | | ||
sudo add-apt-repository -y ppa:apptainer/ppa | ||
sudo apt-get update | ||
sudo apt-get install -y apptainer | ||
# sudo apptainer build --notest test.sif ./util/container/test.def | ||
sudo apptainer remote add --no-login SylabsCloud cloud.sycloud.io | ||
echo ${{ secrets.SYLABS_TOKEN }} | sudo apptainer remote login -u ${{ vars.SYLABS_USERNAME }} --password-stdin SylabsCloud | ||
sudo apptainer remote list | ||
sudo apptainer push -D "For testing" -U test.sif library://${{ vars.SYLABS_USERNAME }}/r3bdev/r3broot:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM yanzhaowang/r3bdev:fedora41 | ||
|
||
ENV FAIRROOTPATH="/root/FairRoot" | ||
ENV UCESB_DIR="/root/ucesb" | ||
ENV PEDEDIR="/root" | ||
ENV THREAD_NUM=4 | ||
ENV R3B_BRNAME="neuland_new_calibration" | ||
|
||
RUN yes | dnf upgrade --refresh | ||
|
||
# RUN yes | dnf upgrade --refresh &&\ | ||
# dnf install -y byacc && pip install conan --upgrade &&\ | ||
# mkdir -p $FAIRROOTPATH &&\ | ||
# cd /tmp &&\ | ||
# git clone --depth 1 --branch dev https://github.com/FairRootGroup/FairRoot.git &&\ | ||
# cd FairRoot &&\ | ||
# mkdir build && cd build && cmake -GNinja -DCMAKE_INSTALL_PREFIX=${FAIRROOTPATH} .. &&\ | ||
# ninja -j${THREAD_NUM} && ninja install &&\ | ||
# cd /root && git clone https://git.chalmers.se/expsubphys/ucesb.git && cd ucesb && make empty/empty &&\ | ||
# cd /root &&\ | ||
# git clone --depth 1 --branch ${R3B_BRNAME} https://github.com/YanzhaoW/R3BRoot.git &&\ | ||
# cd R3BRoot && git submodule update --init && cmake --preset default -GNinja &&\ | ||
# cmake --build --preset default -- -j${THREAD_NUM} &&\ | ||
# source build/config.sh && root -l -q neuland/geobase/create_neuland_geo.C &&\ | ||
# rm -rf /tmp/FairRoot | ||
|
||
# ENV CONFIG_FILE="/root/R3BRoot/build/config.sh" | ||
# ENTRYPOINT ["/bin/bash", "--rcfile", "/root/R3BRoot/build/config.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
BootStrap: docker | ||
From: yanzhaowang/r3bdev:r3broot | ||
|
||
%environment | ||
source /root/R3BRoot/build/config.sh | ||
|
||
%runscript | ||
neulandSim $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BootStrap: docker | ||
From: yanzhaowang/r3bdev:test | ||
|
||
%runscript | ||
echo "$@" | ||
|