File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -167,24 +167,16 @@ bats-image:
167
167
podman inspect $(BATS_IMAGE ) & > /dev/null || \
168
168
podman build -t $(BATS_IMAGE ) -f container-images/bats/Containerfile .
169
169
170
- .PHONY : bats-in-container
171
- bats-in-container : bats-image
172
- podman run -it --rm \
173
- --userns=keep-id:size=200000 \
174
- --security-opt unmask=/proc/* \
175
- --security-opt label=disable \
176
- --security-opt=mask=/sys/bus/pci/drivers/i915 \
177
- --device /dev/net/tun \
178
- -v $(CURDIR ) :/src \
179
- $(BATS_IMAGE ) make bats
170
+ bats-in-container : extra-opts = --security-opt unmask=/proc/* --device /dev/net/tun
180
171
181
- .PHONY : bats-nocontainer-in-container
182
- bats-nocontainer-in-container : bats-image
172
+ % -in-container : bats-image
183
173
podman run -it --rm \
184
174
--userns=keep-id:size=200000 \
175
+ --security-opt label=disable \
185
176
--security-opt=mask=/sys/bus/pci/drivers/i915 \
177
+ $(extra-opts ) \
186
178
-v $(CURDIR ) :/src \
187
- $(BATS_IMAGE ) make bats-nocontainer
179
+ $(BATS_IMAGE ) make $*
188
180
189
181
.PHONY : ci
190
182
ci :
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ ENTRYPOINT ["/usr/bin/entrypoint.sh"]
8
8
9
9
RUN dnf -y install make bats jq iproute podman openssl httpd-tools \
10
10
ollama python3-huggingface-hub \
11
+ # for validate and unit-tests
12
+ black codespell shellcheck \
13
+ python3-flake8 python3-isort python3-pip python3-pytest \
14
+ perl-Clone perl-FindBin \
11
15
# for building llama-bench
12
16
git-core cmake gcc-c++ curl-devel && \
13
17
dnf -y clean all
You can’t perform that action at this time.
0 commit comments