Skip to content

Commit

Permalink
ci: add Dockerfile linting
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Nov 18, 2020
1 parent 14739d3 commit db5bfa1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is part of REANA.
# Copyright (C) 2020 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

name: CI

on: [push, pull_request]

jobs:
lint-dockerfile:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Check Dockerfile compliance
run: docker run -i --rm hadolint/hadolint < Dockerfile
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM ubuntu:18.04
# tools needed to setup repository
# hadolint ignore=DL3027
RUN apt update; \
DEBIAN_FRONTEND=noninteractive apt upgrade -y; \
apt install -y wget gnupg;
# setup of the fcc apt repository
# hadolint ignore=DL3027
RUN wget -q https://fcc-pileup.web.cern.ch/fcc-pileup/sw/latest/x86_64-ubuntu1804-gcc8-opt/keyFile; \
apt-key add keyFile; \
rm keyFile; \
Expand All @@ -14,6 +16,7 @@ RUN wget -q https://fcc-pileup.web.cern.ch/fcc-pileup/sw/latest/x86_64-ubuntu18
DEBIAN_FRONTEND=noninteractive apt upgrade -y; \
apt install -y hep-fccsw;
# download data files needed to run geant4
# hadolint ignore=DL3027
RUN apt install -y hep-geant4data;
## necessary shell environment (usually sourced from /etc/profile)
ENV G4NEUTRONHPDATA=/usr/local/share/Geant4/data/G4NDL4.5 \
Expand All @@ -40,5 +43,6 @@ ENV G4NEUTRONHPDATA=/usr/local/share/Geant4/data/G4NDL4.5 \
CPLUS_INCLUDE_DIR=$CPLUS_INCLUDE_DIR:/usr/local/include \
GAUDI_LIBRARY_PATH=/usr/local/lib \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
# hadolint ignore=DL3027
RUN DEBIAN_FRONTEND=noninteractive apt install -y python-scipy python-matplotlib;

0 comments on commit db5bfa1

Please sign in to comment.