Skip to content

Commit

Permalink
chunk up dockerfile for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
garris committed Feb 21, 2024
1 parent b1cd493 commit a98ba57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ RUN apt-get -qq update >/dev/null && apt-get install -qq \
# korean
fonts-unfonts-core fonts-unfonts-extra \
# cjk + emoji font
fonts-noto-cjk fonts-noto-color-emoji \
# chromium
chromium >/dev/null && apt-get -qq clean >/dev/null && rm -rf /var/lib/apt/lists/*
fonts-noto-cjk fonts-noto-color-emoji

RUN apt-get install -qq chromium >/dev/null

#RUN apt-get -qq clean >/dev/null && rm -rf /var/lib/apt/lists/*

# skip download, we already have it installed
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"build-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker; docker buildx build --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:latest --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-load-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --load -t backstopjs/backstopjs:$PV docker",
"publish-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:latest --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-publish": "npm run publish-npm && npm run build-docker && npm run publish-docker",
"init-docker-builder": "docker buildx create --name backstopbuilder --use --bootstrap",
"burn-docker-builder": "docker buildx rm backstopbuilder",
"build-and-publish": "npm run publish-npm && npm run publish-docker",
"init-docker-builder": "docker buildx create --name backstopjsbuilder --use --bootstrap",
"burn-docker-builder": "docker buildx rm backstopjsbuilder; docker builder prune --all",
"success-message": "printf \"\\n\\e[32m✓ SUCCESS!\\e[0m BackstopJS internal testing passed.\\n\"",
"caution-message": "printf \"\\n\\e[33m⚠ Notice.\\e[0m BackstopJS internal testing exited with a non-success status. This is expected when BackstopJS finds differences.\\n\"",
"fail-message": "printf \"\\n\\e[31m✖ FAIL!\\e[0m BackstopJS internal testing failed. See logs for details.\\n\""
Expand Down

0 comments on commit a98ba57

Please sign in to comment.