-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (23 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
24 lines (23 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
test-deb:
build:
context: .
dockerfile_inline: |
FROM debian:bookworm-slim
COPY dist/ /tmp/dist/
RUN ARCH=$(dpkg --print-architecture) && \
PKG=$(find /tmp/dist -name "*_${ARCH}.deb" | head -1) && \
{ test -n "${PKG}" || { echo "No .deb found in dist/ for arch ${ARCH}"; exit 1; }; } && \
apt-get update && apt-get install -y "${PKG}"
RUN dis --version
test-rpm:
build:
context: .
dockerfile_inline: |
FROM fedora:latest
COPY dist/ /tmp/dist/
RUN ARCH=$(uname -m) && \
PKG=$(find /tmp/dist -name "*.${ARCH}.rpm" | head -1) && \
{ test -n "${PKG}" || { echo "No .rpm found in dist/ for arch ${ARCH}"; exit 1; }; } && \
dnf install -y "${PKG}"
RUN dis --version