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
2
3
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
9
6
10
7
COPY . .
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
12
9
10
+ FROM base
11
+ COPY --from=builder /root/stas-dest /root/stas-dest
13
12
ENTRYPOINT ["python3" ]
Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ services:
16
16
environment :
17
17
RUNTIME_DIRECTORY : /run/stafd
18
18
XDG_CACHE_HOME : /var/cache/stafd
19
+ LD_LIBRARY_PATH : /root/stas-dest/usr/lib64
20
+ PYTHONPATH : /root/stas-dest/usr/lib64/python3.10/site-packages:/root/stas-dest/usr/lib/python3.10/site-packages
19
21
PYTHONUNBUFFERED : 1
20
- command : -u /usr/sbin/stafd
22
+ command : -u /root/stas-dest/ usr/sbin/stafd --tron
21
23
stacd :
22
24
<< : *default-stas
23
25
environment :
24
26
RUNTIME_DIRECTORY : /run/stacd
25
27
XDG_CACHE_HOME : /var/cache/stacd
28
+ LD_LIBRARY_PATH : /root/stas-dest/usr/lib64
29
+ PYTHONPATH : /root/stas-dest/usr/lib64/python3.10/site-packages:/root/stas-dest/usr/lib/python3.10/site-packages
26
30
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