1
1
FROM quay.io/samba.org/sambacc:latest AS builder
2
- ARG SAMBACC_VER=fd747527ed86d01821c4a3b72f1c4f893bb1ca36
2
+ ARG SAMBACC_VER=master
3
3
ARG SAMBACC_REPO=https://github.com/samba-in-kubernetes/sambacc
4
4
5
5
# the changeset hash on the next line ensures we get a specifc
6
6
# version of sambacc. When sambacc actually gets tagged, it should
7
7
# be changed to use the tag.
8
- RUN /usr/local/bin/build.sh ${SAMBACC_VER} ${SAMBACC_REPO}
8
+ RUN SAMBACC_DISTNAME=latest \
9
+ /usr/local/bin/build.sh ${SAMBACC_VER} ${SAMBACC_REPO}
9
10
10
- FROM fedora
11
+ FROM registry.fedoraproject.org/ fedora:34
11
12
12
13
MAINTAINER John Mulligan <
[email protected] >
13
- ENV SAMBACC_VERSION="0.1"
14
14
15
15
COPY smb.conf /etc/samba/smb.conf
16
16
RUN curl http://artifacts.ci.centos.org/gluster/nightly-samba/master/fedora/samba-nightly-master.repo -o /etc/yum.repos.d/samba-nightly-master.repo
@@ -31,10 +31,13 @@ RUN dnf install --setopt=install_weak_deps=False -y \
31
31
&& true
32
32
33
33
COPY --from=builder \
34
- /var/tmp/build/sambacc/dist/sambacc-$SAMBACC_VERSION-py3-none-any.whl \
35
- /tmp/sambacc-$SAMBACC_VERSION-py3-none-any.whl
36
- RUN pip install /tmp/sambacc-$SAMBACC_VERSION-py3-none-any.whl \
37
- && rm -f /tmp/sambacc-$SAMBACC_VERSION-py3-none-any.whl \
34
+ /srv/dist/latest/sambacc-*.whl \
35
+ /tmp/
36
+ RUN true \
37
+ && wheel="$(find /tmp/ -type f -name 'sambacc-*.whl')" \
38
+ && [ $(echo "$wheel" | wc -l) = 1 ] \
39
+ && pip install "$wheel" \
40
+ && rm -f "$wheel" \
38
41
&& ln -s /usr/local/share/sambacc/examples/minimal.json /etc/samba/container.json \
39
42
&& true
40
43
0 commit comments