mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Add cache for local integration test container
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
c5cc4caeef
commit
b13ce08ac8
2 changed files with 10 additions and 2 deletions
|
|
@ -140,7 +140,9 @@ function prepareDocker() {
|
|||
echo "Starting the Nextcloud container"
|
||||
# When using "nextcloudci/phpX.Y" images the container exits immediately if
|
||||
# no command is given, so a Bash session is created to prevent that.
|
||||
docker run --detach --name=$NEXTCLOUD_LOCAL_CONTAINER $NEXTCLOUD_LOCAL_CONTAINER_NETWORK_OPTIONS --interactive --tty $NEXTCLOUD_LOCAL_IMAGE bash
|
||||
docker run \
|
||||
--volume composer_cache:/root/.composer \
|
||||
--detach --name=$NEXTCLOUD_LOCAL_CONTAINER $NEXTCLOUD_LOCAL_CONTAINER_NETWORK_OPTIONS --interactive --tty $NEXTCLOUD_LOCAL_IMAGE bash
|
||||
|
||||
# Use the $TMPDIR or, if not set, fall back to /tmp.
|
||||
NEXTCLOUD_LOCAL_TAR="$($MKTEMP --tmpdir="${TMPDIR:-/tmp}" --suffix=.tar nextcloud-local-XXXXXXXXXX)"
|
||||
|
|
|
|||
|
|
@ -138,7 +138,13 @@ function prepareDocker() {
|
|||
# Selenium server.
|
||||
# The container exits immediately if no command is given, so a Bash session
|
||||
# is created to prevent that.
|
||||
docker run --detach --name=$NEXTCLOUD_LOCAL_CONTAINER --network=container:$SELENIUM_CONTAINER --interactive --tty nextcloudci/acceptance-php7.3:acceptance-php7.3-2 bash
|
||||
docker run \
|
||||
--detach \
|
||||
--name=$NEXTCLOUD_LOCAL_CONTAINER \
|
||||
--network=container:$SELENIUM_CONTAINER \
|
||||
--volume composer_cache:/root/.composer \
|
||||
--interactive \
|
||||
--tty nextcloudci/acceptance-php7.3:acceptance-php7.3-2 bash
|
||||
|
||||
# Use the $TMPDIR or, if not set, fall back to /tmp.
|
||||
NEXTCLOUD_LOCAL_TAR="$($MKTEMP --tmpdir="${TMPDIR:-/tmp}" --suffix=.tar nextcloud-local-XXXXXXXXXX)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue