Skip to content

Commit 11f0957

Browse files
committed
Add SPC_DOCKER_DEBUG for gnu docker, remove classmap for alpine docker
1 parent 2d7c052 commit 11f0957

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

bin/spc-alpine-docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ WORKDIR /app
9595
ADD ./src /app/src
9696
COPY ./composer.* /app/
9797
ADD ./bin /app/bin
98-
RUN composer install --no-dev --classmap-authoritative
98+
RUN composer install --no-dev
9999
EOF
100100
fi
101101

bin/spc-gnu-docker

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,8 @@ echo 'SPC_CMD_VAR_PHP_MAKE_EXTRA_LIBS="-ldl -lpthread -lm -lresolv -lutil -lrt"'
145145
# shellcheck disable=SC2086
146146
# shellcheck disable=SC2090
147147

148-
$DOCKER_EXECUTABLE run --rm $INTERACT -e SPC_FIX_DEPLOY_ROOT="$(pwd)" --env-file /tmp/spc-gnu-docker.env $MOUNT_LIST cwcc-spc-gnu-$SPC_USE_ARCH bin/spc $@
148+
if [ "$SPC_DOCKER_DEBUG" = "yes" ]; then
149+
$DOCKER_EXECUTABLE run --rm -it --privileged $INTERACT -e SPC_FIX_DEPLOY_ROOT="$(pwd)" --env-file /tmp/spc-gnu-docker.env $MOUNT_LIST cwcc-spc-gnu-$SPC_USE_ARCH
150+
else
151+
$DOCKER_EXECUTABLE run --rm $INTERACT -e SPC_FIX_DEPLOY_ROOT="$(pwd)" --env-file /tmp/spc-gnu-docker.env $MOUNT_LIST cwcc-spc-gnu-$SPC_USE_ARCH bin/spc $@
152+
fi

0 commit comments

Comments
 (0)