File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- FROM fedora:36
1+ FROM fedora:36 as base
2+ RUN dnf install -y python3-dasbus python3-pyudev python3-systemd python3-gobject
23
3- WORKDIR /root
4-
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
4+ FROM base as builder
5+ RUN dnf install -y git gcc g++ cmake openssl-devel libuuid-devel json-c-devel swig python-devel meson
96
107COPY . .
11- RUN meson .build && ninja -C .build && meson install -C .build
8+ RUN meson .build && ninja -C .build && meson install -C .build --destdir=/root/stas-dest
129
10+ FROM base
11+ COPY --from=builder /root/stas-dest /root/stas-dest
1312ENTRYPOINT ["python3" ]
Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ services:
1616 environment :
1717 RUNTIME_DIRECTORY : /run/stafd
1818 XDG_CACHE_HOME : /var/cache/stafd
19+ LD_LIBRARY_PATH : /root/stas-dest/usr/lib64
20+ PYTHONPATH : /root/stas-dest/usr/lib64/python3.9/site-packages:/root/stas-dest/usr/lib/python3.9/site-packages
1921 PYTHONUNBUFFERED : 1
20- command : -u /usr/sbin/stafd
22+ command : -u /root/stas-dest/ usr/sbin/stafd --tron
2123 stacd :
2224 << : *default-stas
2325 environment :
2426 RUNTIME_DIRECTORY : /run/stacd
2527 XDG_CACHE_HOME : /var/cache/stacd
28+ LD_LIBRARY_PATH : /root/stas-dest/usr/lib64
29+ PYTHONPATH : /root/stas-dest/usr/lib64/python3.9/site-packages:/root/stas-dest/usr/lib/python3.9/site-packages
2630 PYTHONUNBUFFERED : 1
27- command : -u /usr/sbin/stacd
31+ command : -u /root/stas-dest/ usr/sbin/stacd --tron
You can’t perform that action at this time.
0 commit comments