File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 79
79
@test " python" {
80
80
skip_slow_test
81
81
git clone https://github.com/docker-library/python.git
82
- cd python/3.11/alpine3.19
82
+ cd python/3.11/alpine3.21
83
83
chmod -R a+rw .
84
84
stacker convert --docker-file Dockerfile --output-file stacker.yaml --substitute-file stacker-subs.yaml
85
85
stacker build -f stacker.yaml --substitute-file stacker-subs.yaml --substitute IMAGE=python
Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ if [ "$(id -u)" != "0" ]; then
8
8
exit 1
9
9
fi
10
10
11
+ function give_user_ownership() {
12
+ if [ " $PRIVILEGE_LEVEL " = " priv" ]; then
13
+ return
14
+ fi
15
+ if [ -z " $SUDO_UID " ]; then
16
+ echo " PRIVILEGE_LEVEL=$PRIVILEGE_LEVEL but empty SUDO_USER"
17
+ exit 1
18
+ fi
19
+ chown -R " $SUDO_USER :$SUDO_USER " " $@ "
20
+ }
21
+
11
22
function skip_if_no_unpriv_overlay {
12
23
local wdir=" "
13
24
# use a workdir to ensure no side effects to the caller
@@ -80,17 +91,6 @@ function stacker_setup() {
80
91
chown -R $SUDO_USER :$SUDO_USER .
81
92
}
82
93
83
- function give_user_ownership() {
84
- if [ " $PRIVILEGE_LEVEL " = " priv" ]; then
85
- return
86
- fi
87
- if [ -z " $SUDO_UID " ]; then
88
- echo " PRIVILEGE_LEVEL=$PRIVILEGE_LEVEL but empty SUDO_USER"
89
- exit 1
90
- fi
91
- chown -R " $SUDO_USER :$SUDO_USER " " $@ "
92
- }
93
-
94
94
function cleanup() {
95
95
cd " $ROOT_DIR /test"
96
96
umount_under " $TEST_TMPDIR "
You can’t perform that action at this time.
0 commit comments