Skip to content

Commit 70a1fb2

Browse files
Merge pull request #193 from glimchb/docker
CI: add dockerfile hadolint checker
2 parents b644c5e + dac2332 commit 70a1fb2

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/pylint.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
name: Pylint
1+
name: Linters
22

33
on: [push]
44

55
jobs:
6-
build:
6+
7+
docker-lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: hadolint/[email protected]
12+
with:
13+
recursive: true
14+
ignore: DL3041
15+
16+
python-lint:
717
runs-on: ubuntu-latest
818

919
strategy:

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ FROM fedora:36
22

33
WORKDIR /root
44

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

1010
COPY . .
11-
RUN meson .build && ninja -C .build && cd .build && meson install
11+
RUN meson .build && ninja -C .build && meson install -C .build
1212

1313
ENTRYPOINT ["python3"]

0 commit comments

Comments
 (0)