Skip to content

Commit 3e7ddbd

Browse files
committed
dockerfile: update to leap 15.4
Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 44a127b commit 3e7ddbd

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

Dockerfile

+8-9
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM registry.opensuse.org/opensuse/leap:15.2
16+
FROM registry.opensuse.org/opensuse/leap:15.4
1717
MAINTAINER "Aleksa Sarai <[email protected]>"
1818

1919
# We have to use out-of-tree repos because several packages haven't been merged
2020
# into openSUSE Leap yet, or are out of date in Leap.
2121
RUN zypper mr -d repo-non-oss repo-update-non-oss && \
22-
zypper ar -f -p 5 -g obs://home:cyphar:bats obs-bats && \
23-
zypper ar -f -p 10 -g obs://Virtualization:containers obs-vc && \
24-
zypper ar -f -p 10 -g obs://devel:tools obs-tools && \
25-
zypper ar -f -p 10 -g obs://devel:languages:go obs-go && \
22+
zypper ar -f -p 10 -g 'obs://Virtualization:containers/$releasever' obs-vc && \
23+
zypper ar -f -p 10 -g 'obs://devel:tools/$releasever' obs-tools && \
24+
zypper ar -f -p 10 -g 'obs://devel:languages:go/$releasever' obs-go && \
25+
zypper ar -f -p 10 -g 'obs://home:cyphar:containers/$releasever' obs-gomtree && \
2626
zypper --gpg-auto-import-keys -n ref && \
2727
zypper -n up
2828
RUN zypper -n in \
@@ -32,15 +32,14 @@ RUN zypper -n in \
3232
curl \
3333
git \
3434
gnu_parallel \
35-
"go>=1.16" \
35+
"go>=1.18" \
3636
go-mtree \
3737
gzip \
3838
jq \
3939
libcap-progs \
4040
make \
4141
moreutils \
42-
python-setuptools \
43-
python-xattr \
42+
python3-xattr python3-setuptools \
4443
runc \
4544
skopeo \
4645
tar \
@@ -66,7 +65,7 @@ RUN git clone -b v0.3.0 https://github.com/opencontainers/image-tools.git /tmp/o
6665
rm -rf /tmp/oci-image-tools
6766

6867
ENV SOURCE_IMAGE=/opensuse SOURCE_TAG=latest
69-
ARG TEST_DOCKER_IMAGE=registry.opensuse.org/opensuse/leap:15.2
68+
ARG TEST_DOCKER_IMAGE=registry.opensuse.org/opensuse/leap:15.4
7069
RUN skopeo copy docker://$TEST_DOCKER_IMAGE oci:$SOURCE_IMAGE:$SOURCE_TAG
7170

7271
VOLUME ["/go/src/github.com/opencontainers/umoci"]

test/unpack.bats

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ function teardown() {
215215
# Ensure that the capability bits were preserved.
216216
sane_run getcap "$ROOTFS/setcap1"
217217
[ "$status" -eq 0 ]
218-
[[ "$output" == *" = cap_net_raw+eip"* ]]
218+
[[ "$output" == *" cap_net_raw=eip"* ]]
219219
sane_run getcap "$ROOTFS/setcap2"
220220
[ "$status" -eq 0 ]
221-
[[ "$output" == *" = cap_sys_admin,cap_setfcap"* ]]
221+
[[ "$output" == *" cap_sys_admin,cap_setfcap=eip"* ]]
222222

223223
# Unpack the image (as rootless).
224224
new_bundle_rootfs

0 commit comments

Comments
 (0)