Skip to content

Commit

Permalink
Merge pull request #18 from DUNE-DAQ/thea/run_images
Browse files Browse the repository at this point in the history
Adding run images
  • Loading branch information
alessandrothea authored Oct 27, 2023
2 parents ce8adb8 + 412bae8 commit aef099e
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/alma9-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build alma9-run docker image

on:
schedule:
- cron: "0 5 * * 2"

push:
branches: [ develop ]
tags:
- 'v*'
paths:
- dockerfiles/alma9-run.dockerfile

workflow_dispatch:

jobs:

push_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
repository: DUNE-DAQ/daq-docker
path: daq-docker

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/DUNE-DAQ/alma9-run
tags: |
type=raw,value=latest
type=ref,event=branch
type=ref,event=tag
- name: prepare build dir
run: |
build_dir="${{ github.workspace }}/docker-build"
mkdir -p $build_dir
cd $build_dir
cp ${{ github.workspace }}/daq-docker/dockerfiles/alma9-run.dockerfile $build_dir/Dockerfile
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: ${{ github.workspace }}/docker-build
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
62 changes: 62 additions & 0 deletions .github/workflows/c8-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build c8-run docker image

on:
schedule:
- cron: "0 5 * * 2"

push:
branches: [ develop ]
tags:
- 'v*'
paths:
- dockerfiles/c8-run.dockerfile

workflow_dispatch:

jobs:

push_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
repository: DUNE-DAQ/daq-docker
path: daq-docker

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/DUNE-DAQ/c8-run
tags: |
type=raw,value=latest
type=ref,event=branch
type=ref,event=tag
- name: prepare build dir
run: |
build_dir="${{ github.workspace }}/docker-build"
mkdir -p $build_dir
cd $build_dir
cp ${{ github.workspace }}/daq-docker/dockerfiles/c8-run.dockerfile $build_dir/Dockerfile
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: ${{ github.workspace }}/docker-build
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
20 changes: 20 additions & 0 deletions dockerfiles/alma9-run.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This Dockerfile is used to build an headles vnc image based on Centos

#FROM centos:centos8
FROM ghcr.io/dune-daq/alma9-minimal:latest


ARG HTTP_PROXY=local
ARG HTTPS_PROXY=local
ENV HTTP_PROXY=${HTTP_PROXY}
ENV HTTPS_PROXY=${HTTPS_PROXY}

ENV REFRESHED_AT 2023-10-04

# Common system tools requried to for debugging and causing trouble
RUN yum clean all \
&& yum -y install \
sudo pciutils iputils iproute telnet nc \
&& yum clean all

ENTRYPOINT ["/bin/bash"]
22 changes: 22 additions & 0 deletions dockerfiles/c8-run.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This Dockerfile is used to build an headles vnc image based on Centos

#FROM centos:centos8
FROM ghcr.io/dune-daq/c8-minimal:latest


ARG HTTP_PROXY=local
ARG HTTPS_PROXY=local
ENV HTTP_PROXY=${HTTP_PROXY}
ENV HTTPS_PROXY=${HTTPS_PROXY}

ENV REFRESHED_AT 2021-11-18

ENV UPS_OVERRIDE="-H Linux64bit+4.18-2.28"

# Common system tools requried to for debugging and causing trouble
RUN yum clean all \
&& yum -y install \
sudo pciutils iputils iproute telnet nc \
&& yum clean all

ENTRYPOINT ["/bin/bash"]

0 comments on commit aef099e

Please sign in to comment.