Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .github/workflows/CI-integrationtests.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/gammasim-tools-dev.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: docker-simtelarray
name: docker-test-arch

on:
push:
Expand All @@ -15,7 +15,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
build-simtelarray:
build-test-arch:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -27,10 +27,11 @@ jobs:
with:
path: 'containers'

- name: corsikasimtelpackage
run: |
wget --no-verbose https://syncandshare.desy.de/index.php/s/${{ secrets.CLOUD_SIMTEL }}/download
mv download corsika7.7_simtelarray.tar.gz
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
Expand All @@ -44,15 +45,16 @@ jobs:
uses: docker/metadata-action@v4
with:
tags: |
type=ref,event=pr,suffix=-simtelarray
type=semver,pattern={{major}}.{{minor}}.{{patch}},suffix=-simtelarray
images: ${{ env.REGISTRY }}/simtelarray/${{ env.IMAGE_NAME }}
type=ref,event=pr,suffix=-test-arch
type=semver,pattern={{major}}.{{minor}}.{{patch}},suffix=-test-arch
images: ${{ env.REGISTRY }}/gammasim/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
file: ./containers/simtelarray/Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: ${{ github.event_name != 'release' }}
file: ./containers/test-arch/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-simtelarray
labels: ${{ steps.meta.outputs.labels }}-test-arch
25 changes: 25 additions & 0 deletions test-arch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From ubuntu:22.10 as build_image
WORKDIR /workdir
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
bash \
build-essential \
bzip2 \
csh \
git \
libgsl-dev \
unzip \
vim \
wget && \
apt-get clean && rm -rf /var/lib/apt/lists/*

RUN uname -a

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$(uname -p).sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /workdir/conda && \
rm ~/miniconda.sh && \
/workdir/conda/bin/conda clean -tipy && \
/workdir/conda/bin/conda install -c conda-forge mamba

WORKDIR /workdir/external