-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): Refactor test-base Dockerfile to avoid long build times
- Loading branch information
Showing
5 changed files
with
95 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# This Dockerfile contains all the test fixtures for integration testing. | ||
FROM quay.io/fossa/fossa-cli-base | ||
|
||
# Known good Go projects (some are `git clone`d because `go get` causes | ||
# compilation errors): | ||
## Kubernetes (godep) | ||
RUN mkdir -p $GOPATH/src/k8s.io && \ | ||
cd $GOPATH/src/k8s.io && \ | ||
git clone --depth=1 https://github.com/kubernetes/kubernetes && \ | ||
cd kubernetes && \ | ||
make ./cmd/kube-apiserver | ||
|
||
## Consul (nested govendor) | ||
RUN go get -u -v github.com/hashicorp/consul | ||
|
||
## Docker, Docker CE (vndr) | ||
RUN mkdir -p $GOPATH/src/github.com/docker && \ | ||
cd $GOPATH/src/github.com/docker && \ | ||
git clone --depth=1 https://github.com/docker/docker && \ | ||
git clone --depth=1 https://github.com/docker/docker-ce | ||
|
||
## InfluxDB (gdm) | ||
## This is an older version of InfluxDB that still used GDM -- the current | ||
## revision has migrated to Dep. | ||
RUN mkdir -p $GOPATH/src/github.com/influxdata && \ | ||
cd $GOPATH/src/github.com/influxdata && \ | ||
git clone https://github.com/influxdata/influxdb && \ | ||
cd influxdb && \ | ||
git reset --hard d606fcf19a5bb81566aac58cd223638a8720be2c && \ | ||
go get github.com/influxdata/influxdb/... | ||
|
||
## rkt (glide) | ||
RUN go get -u -v github.com/rkt/rkt/rkt | ||
|
||
# Known good NodeJS projects | ||
RUN git clone --depth=1 https://github.com/GoogleChrome/puppeteer && \ | ||
cd puppeteer && \ | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install --production | ||
RUN git clone --depth=1 https://github.com/zeit/pkg && \ | ||
cd pkg && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/Marak/faker.js && \ | ||
cd faker.js && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/fastify/fastify && \ | ||
cd fastify && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/nestjs/nest && \ | ||
cd nest && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/harc/ohm && \ | ||
cd ohm && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/expressjs/express && \ | ||
cd express && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/standard/standard && \ | ||
cd standard && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/mafintosh/sodium-encryption && \ | ||
cd sodium-encryption && \ | ||
npm install --production | ||
RUN git clone --depth=1 https://github.com/request/request && \ | ||
cd request && \ | ||
npm install --production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters