Skip to content

Commit

Permalink
Smaller cache scope for builder cache
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed May 4, 2020
1 parent b65fc56 commit a2fe1f6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
6 changes: 4 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ yarndep: ## Ensure all yarn dependencies are installed
yarn setup:chainlink

.PHONY: gen-builder-cache
gen-builder-cache: gomod yarndep # generate a cache for the builder image

gen-builder-cache: gomod # generate a cache for the builder image
yarn install --frozen-lockfile
./tools/bin/restore-solc-cache

.PHONY: install-chainlink
install-chainlink: chainlink ## Install the chainlink binary.
cp $< $(GOBIN)/chainlink
Expand Down
29 changes: 28 additions & 1 deletion builder-cache.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
FROM smartcontract/builder:1.0.34

WORKDIR /chainlink
COPY . .
COPY go.mod go.sum yarn.lock package.json .yarnrc GNUmakefile ./
COPY tools/bin/ldflags tools/bin/ldflags
COPY tools/bin/restore-solc-cache tools/bin/restore-solc-cache
COPY .git .git
COPY VERSION VERSION
COPY .yarn .yarn
COPY patches patches
COPY solc_bin solc_bin
COPY belt/package.json belt/package.json
COPY evm-contracts/package.json evm-contracts/package.json
COPY evm-test-helpers/package.json evm-test-helpers/package.json
COPY explorer/client/package.json explorer/client/package.json
COPY explorer/package.json explorer/package.json
COPY feeds/package.json feeds/package.json
COPY integration/package.json integration/package.json
COPY integration-scripts/package.json integration-scripts/package.json
COPY operator_ui/package.json operator_ui/package.json
COPY styleguide/package.json styleguide/package.json
COPY tools/ci-ts/package.json tools/ci-ts/package.json
COPY tools/cypress-job-server/package.json tools/cypress-job-server/package.json
COPY tools/echo-server/package.json tools/echo-server/package.json
COPY tools/external-adapter/package.json tools/external-adapter/package.json
COPY tools/json-api-client/package.json tools/json-api-client/package.json
COPY tools/local-storage/package.json tools/local-storage/package.json
COPY tools/package.json tools/package.json
COPY tools/redux/package.json tools/redux/package.json
COPY tools/ts-helpers/package.json tools/ts-helpers/package.json

RUN make gen-builder-cache

0 comments on commit a2fe1f6

Please sign in to comment.