Use docker mirror

This commit is contained in:
Michele 2020-10-28 21:23:25 -07:00
parent 9dc7f442a8
commit 48e133e31e
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ version: 2
jobs:
build-website-docker-image:
docker:
- image: circleci/buildpack-deps
- image: docker.mirror.hashicorp.services/circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail -c
steps:
- checkout

View File

@ -1,4 +1,4 @@
FROM node:10.16.3-alpine
FROM docker.mirror.hashicorp.services/node:10.16.3-alpine
RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev
COPY ./package.json /website/package.json

View File

@ -1,7 +1,7 @@
# Default: run this if working on the website locally to run in watch mode.
website:
@echo "==> Downloading latest Docker image..."
@docker pull hashicorp/vagrant-website
@docker pull docker.mirror.hashicorp.services/hashicorp/vagrant-website
@echo "==> Starting website in Docker..."
@docker run \
--interactive \
@ -11,13 +11,13 @@ website:
--volume "$(shell pwd):/website" \
--volume "/website/node_modules" \
--publish "3000:3000" \
hashicorp/vagrant-website \
docker.mirror.hashicorp.services/hashicorp/vagrant-website \
npm start
# This command will generate a static version of the website to the "out" folder.
build:
@echo "==> Downloading latest Docker image..."
@docker pull hashicorp/vagrant-website
@docker pull docker.mirror.hashicorp.services/hashicorp/vagrant-website
@echo "==> Starting build in Docker..."
@docker run \
--interactive \
@ -26,7 +26,7 @@ build:
--workdir "/website" \
--volume "$(shell pwd):/website" \
--volume "/website/node_modules" \
hashicorp/vagrant-website \
docker.mirror.hashicorp.services/hashicorp/vagrant-website \
npm run static
# If you are changing node dependencies locally, run this to generate a new