File tree Expand file tree Collapse file tree
packages/nextcloud/packages/nextcloud_test_presets/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ WORKDIR /usr/src/nextcloud
66ADD pre.sh /tmp
77RUN /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
1313COPY static /usr/src/nextcloud/static
1414COPY assets/Recipes /usr/src/nextcloud/data/admin/files/Recipes
Original file line number Diff line number Diff line change @@ -7,16 +7,14 @@ function image_tag() {
77}
88
99function 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[*]} "
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ echo "Running development instance on http://localhost. To access it in an Andro
1515
1616tag=" $( preset_image_tag " $preset " ) "
1717volume=" 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 ) "
1919function cleanup() {
2020 docker kill " $container "
2121}
You can’t perform that action at this time.
0 commit comments