Skip to content

Commit

Permalink
Merge pull request #193 from glimchb/docker
Browse files Browse the repository at this point in the history
CI: add dockerfile hadolint checker
  • Loading branch information
martin-belanger committed Jul 20, 2022
2 parents b644c5e + dac2332 commit 70a1fb2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
name: Pylint
name: Linters

on: [push]

jobs:
build:

docker-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v2.1.0
with:
recursive: true
ignore: DL3041

python-lint:
runs-on: ubuntu-latest

strategy:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM fedora:36

WORKDIR /root

# for nvme-stas
RUN dnf install -y python3-dasbus python3-pyudev python3-systemd python3-gobject meson
# for libnvme
RUN dnf install -y git gcc g++ cmake openssl-devel libuuid-devel json-c-devel swig python-devel meson
# first line for nvme-stas
# second line for libnvme
RUN dnf install -y python3-dasbus python3-pyudev python3-systemd python3-gobject meson \
git gcc g++ cmake openssl-devel libuuid-devel json-c-devel swig python-devel meson && dnf clean all

COPY . .
RUN meson .build && ninja -C .build && cd .build && meson install
RUN meson .build && ninja -C .build && meson install -C .build

ENTRYPOINT ["python3"]

0 comments on commit 70a1fb2

Please sign in to comment.