Skip to content

Commit 62207a8

Browse files
authored
Merge pull request #7 from tommasodiotalevi/main
Add columnflow kernel
2 parents 53417cb + bd3e71a commit 62207a8

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/kernel-images.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,35 @@ jobs:
167167
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-pocketcoffea:latest
168168
file: ./kernel-PocketCoffea/Dockerfile
169169
platforms: linux/amd64
170+
171+
kernel-columnflow:
172+
needs: kernel-Coffea
173+
runs-on: ubuntu-latest
174+
steps:
175+
- name: Checkout
176+
uses: actions/checkout@v2
177+
- name: Set env
178+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
179+
- name: Set up QEMU
180+
uses: docker/setup-qemu-action@v1
181+
- name: Set up Docker Buildx
182+
uses: docker/setup-buildx-action@v1
183+
- name: Login to GitHub Container Registry
184+
uses: docker/login-action@v1
185+
with:
186+
registry: ghcr.io
187+
username: ${{ github.repository_owner }}
188+
password: ${{ secrets.GITHUB_TOKEN }}
189+
- name: Get Repo Owner
190+
id: get_repo_owner
191+
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
192+
- name: Build container kernel-columnflow
193+
uses: docker/build-push-action@v2
194+
with:
195+
context: ./kernel-columnflow/
196+
outputs: "type=registry,push=true"
197+
tags: |
198+
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-columnflow:${{ env.RELEASE_VERSION }}
199+
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/kernel-columnflow:latest
200+
file: ./kernel-columnflow/Dockerfile
201+
platforms: linux/amd64

kernel-columnflow/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ghcr.io/comp-dev-cms-ita/kernel-coffea
2+
3+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Zurich apt-get -y install \
4+
git-lfs ninja-build
5+
6+
RUN (echo cf_analysis; \
7+
echo cf_analysis; \
8+
echo CR; \
9+
echo cms_minimal; \
10+
echo False) | bash -c "$(curl -Ls https://raw.githubusercontent.com/columnflow/columnflow/master/create_analysis.sh)"
11+
12+
WORKDIR /usr/local/share/comp-dev-cms-ita/cf_analysis
13+
14+
SHELL ["/bin/bash", "-c"]
15+
ENV PATH=/usr/local/share/comp-dev-cms-ita/cf_analysis/data/software/venvs/cf_dev_9b04c75c/bin/:$PATH
16+
17+
RUN source setup.sh
18+
RUN sleep 5
19+
RUN tests/run_all
20+
21+
RUN echo "source /usr/local/share/comp-dev-cms-ita/cf_analysis/setup.sh" >> ~/.bashrc

0 commit comments

Comments
 (0)