Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add Dockerfile linting #8

Merged
merged 1 commit into from
Nov 18, 2020
Merged
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
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;