Skip to content

Commit 100ba54

Browse files
Merge pull request #3187 from nextcloud/fix/tool/podman-rootless
2 parents d93ffcc + ec9db1f commit 100ba54

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

packages/nextcloud/packages/nextcloud_test_presets/docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ WORKDIR /usr/src/nextcloud
66
ADD pre.sh /tmp
77
RUN /tmp/pre.sh
88

9-
RUN (sh /entrypoint.sh php -S 0.0.0.0:80 &) && \
10-
until curl -s -o /dev/null http://localhost/status.php; do true; done && \
11-
for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost/ocs/v2.php/cloud/user; done
9+
RUN (sh /entrypoint.sh php -S 0.0.0.0:8080 &) && \
10+
until curl -s -o /dev/null http://localhost:8080/status.php; do true; done && \
11+
for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost:8080/ocs/v2.php/cloud/user; done
1212

1313
COPY static /usr/src/nextcloud/static
1414
COPY assets/Recipes /usr/src/nextcloud/data/admin/files/Recipes

tool/common.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ function image_tag() {
77
}
88

99
function cache_build_args() {
10-
tag="$1"
10+
tag="$(echo "$1" | cut -d ":" -f 1)"
1111

1212
build_args=(
1313
"--load"
14-
"--cache-from" "type=inline"
15-
"--cache-to" "type=inline,mode=max"
16-
"--cache-from" "type=registry,ref=$tag"
14+
"--cache-from" "$tag"
1715
)
1816
if [ -v PUSH_IMAGES ]; then
19-
build_args+=("--cache-to" "type=registry,ref=$tag,mode=max")
17+
build_args+=("--cache-to" "$tag")
2018
fi
2119

2220
echo "${build_args[*]}"

tool/dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo "Running development instance on http://localhost. To access it in an Andro
1515

1616
tag="$(preset_image_tag "$preset")"
1717
volume="nextcloud-neon-dev-$(echo "$tag" | cut -d ":" -f 2)"
18-
container="$(docker run -d --rm -v "$volume":/usr/src/nextcloud -v "$volume":/var/www/html --network=host "$tag" php -S 0.0.0.0:80)"
18+
container="$(docker run -d --rm -v "$volume":/usr/src/nextcloud -v "$volume":/var/www/html --network=host "$tag" php -S 0.0.0.0:8080)"
1919
function cleanup() {
2020
docker kill "$container"
2121
}

0 commit comments

Comments
 (0)