Use docker mirror
This commit is contained in:
parent
9dc7f442a8
commit
48e133e31e
@ -3,7 +3,7 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
build-website-docker-image:
|
build-website-docker-image:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps
|
- image: docker.mirror.hashicorp.services/circleci/buildpack-deps
|
||||||
shell: /usr/bin/env bash -euo pipefail -c
|
shell: /usr/bin/env bash -euo pipefail -c
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|||||||
@ -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
|
RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev
|
||||||
|
|
||||||
COPY ./package.json /website/package.json
|
COPY ./package.json /website/package.json
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# Default: run this if working on the website locally to run in watch mode.
|
# Default: run this if working on the website locally to run in watch mode.
|
||||||
website:
|
website:
|
||||||
@echo "==> Downloading latest Docker image..."
|
@echo "==> Downloading latest Docker image..."
|
||||||
@docker pull hashicorp/vagrant-website
|
@docker pull docker.mirror.hashicorp.services/hashicorp/vagrant-website
|
||||||
@echo "==> Starting website in Docker..."
|
@echo "==> Starting website in Docker..."
|
||||||
@docker run \
|
@docker run \
|
||||||
--interactive \
|
--interactive \
|
||||||
@ -11,13 +11,13 @@ website:
|
|||||||
--volume "$(shell pwd):/website" \
|
--volume "$(shell pwd):/website" \
|
||||||
--volume "/website/node_modules" \
|
--volume "/website/node_modules" \
|
||||||
--publish "3000:3000" \
|
--publish "3000:3000" \
|
||||||
hashicorp/vagrant-website \
|
docker.mirror.hashicorp.services/hashicorp/vagrant-website \
|
||||||
npm start
|
npm start
|
||||||
|
|
||||||
# This command will generate a static version of the website to the "out" folder.
|
# This command will generate a static version of the website to the "out" folder.
|
||||||
build:
|
build:
|
||||||
@echo "==> Downloading latest Docker image..."
|
@echo "==> Downloading latest Docker image..."
|
||||||
@docker pull hashicorp/vagrant-website
|
@docker pull docker.mirror.hashicorp.services/hashicorp/vagrant-website
|
||||||
@echo "==> Starting build in Docker..."
|
@echo "==> Starting build in Docker..."
|
||||||
@docker run \
|
@docker run \
|
||||||
--interactive \
|
--interactive \
|
||||||
@ -26,7 +26,7 @@ build:
|
|||||||
--workdir "/website" \
|
--workdir "/website" \
|
||||||
--volume "$(shell pwd):/website" \
|
--volume "$(shell pwd):/website" \
|
||||||
--volume "/website/node_modules" \
|
--volume "/website/node_modules" \
|
||||||
hashicorp/vagrant-website \
|
docker.mirror.hashicorp.services/hashicorp/vagrant-website \
|
||||||
npm run static
|
npm run static
|
||||||
|
|
||||||
# If you are changing node dependencies locally, run this to generate a new
|
# If you are changing node dependencies locally, run this to generate a new
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user