Skip to content

Commit

Permalink
build: bail out upon any error in docker builds
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
nachoparker committed May 13, 2021
1 parent 67aa599 commit bd0c23d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-nextcloud.sh
Expand Up @@ -85,7 +85,7 @@ configure()
{
## IF BETA SELECTED ADD "pre" to DOWNLOAD PATH
[[ "$BETA" == yes ]] && local PREFIX="pre"

## DOWNLOAD AND (OVER)WRITE NEXTCLOUD
cd /var/www/

Expand Down
1 change: 1 addition & 0 deletions docker/lamp/Dockerfile
Expand Up @@ -13,6 +13,7 @@ ENV DOCKERBUILD 1
COPY etc/ncp.cfg etc/library.sh lamp.sh /usr/local/etc/

RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
set -e; \

# installation
apt-get update; \
Expand Down
2 changes: 1 addition & 1 deletion docker/nextcloud/Dockerfile
Expand Up @@ -15,6 +15,7 @@ COPY bin/ncp/CONFIG/nc-nextcloud.sh /
COPY etc/ncp-config.d/nc-nextcloud.cfg /usr/local/etc/ncp-config.d/

RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
set -e; \

# mark as image build
touch /.ncp-image; \
Expand All @@ -23,7 +24,6 @@ touch /.ncp-image; \
apt-get update; \
apt-get install --no-install-recommends -y wget ca-certificates sudo jq; \
source /usr/local/etc/library.sh; \
set +x; \
install_app /nc-nextcloud.sh; \
run_app_unsafe /nc-nextcloud.sh; \
mv /var/www/nextcloud /data-ro/nextcloud; \
Expand Down
1 change: 1 addition & 0 deletions docker/nextcloudpi/Dockerfile
Expand Up @@ -23,6 +23,7 @@ COPY docker /tmp/ncp-build/docker/
COPY etc/ncp-config.d/nc-init.cfg /usr/local/etc/ncp-config.d/nc-init-copy.cfg

RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
set -e; \

# make sure we don't accidentally disable first run wizard
rm -f ncp-web/{wizard.cfg,ncp-web.cfg}; \
Expand Down

0 comments on commit bd0c23d

Please sign in to comment.