mirror of https://github.com/docker/cli.git
Set DISABLE_WARN_OUTSIDE_CONTAINER in the Dockerfile so that we don't spend 10s sleeping in CI
also add time to validate check Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4e09dba068
commit
058733969c
7
Makefile
7
Makefile
|
@ -65,3 +65,10 @@ cli/compose/schema/bindata.go: cli/compose/schema/data/*.json
|
||||||
|
|
||||||
compose-jsonschema: cli/compose/schema/bindata.go
|
compose-jsonschema: cli/compose/schema/bindata.go
|
||||||
scripts/validate/check-git-diff cli/compose/schema/bindata.go
|
scripts/validate/check-git-diff cli/compose/schema/bindata.go
|
||||||
|
|
||||||
|
.PHONY: ci-validate
|
||||||
|
ci-validate:
|
||||||
|
time make -B vendor
|
||||||
|
time make -B compose-jsonschema
|
||||||
|
time make manpages
|
||||||
|
time make yamldocs
|
||||||
|
|
|
@ -90,7 +90,7 @@ jobs:
|
||||||
rm -f .dockerignore # include .git
|
rm -f .dockerignore # include .git
|
||||||
docker build -f $dockerfile --tag cli-builder-with-git:$CIRCLE_BUILD_NUM .
|
docker build -f $dockerfile --tag cli-builder-with-git:$CIRCLE_BUILD_NUM .
|
||||||
docker run --rm cli-builder-with-git:$CIRCLE_BUILD_NUM \
|
docker run --rm cli-builder-with-git:$CIRCLE_BUILD_NUM \
|
||||||
make -B vendor compose-jsonschema manpages yamldocs
|
make ci-validate
|
||||||
shellcheck:
|
shellcheck:
|
||||||
working_directory: /work
|
working_directory: /work
|
||||||
docker: [{image: 'docker:17.06-git'}]
|
docker: [{image: 'docker:17.06-git'}]
|
||||||
|
@ -104,7 +104,7 @@ jobs:
|
||||||
echo "COPY . ." >> $dockerfile
|
echo "COPY . ." >> $dockerfile
|
||||||
docker build -f $dockerfile --tag cli-validator:$CIRCLE_BUILD_NUM .
|
docker build -f $dockerfile --tag cli-validator:$CIRCLE_BUILD_NUM .
|
||||||
docker run --rm cli-validator:$CIRCLE_BUILD_NUM \
|
docker run --rm cli-validator:$CIRCLE_BUILD_NUM \
|
||||||
make -B shellcheck
|
make shellcheck
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
ci:
|
ci:
|
||||||
|
|
|
@ -10,7 +10,7 @@ CROSS_IMAGE_NAME = docker-cli-cross
|
||||||
VALIDATE_IMAGE_NAME = docker-cli-shell-validate
|
VALIDATE_IMAGE_NAME = docker-cli-shell-validate
|
||||||
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
||||||
VERSION = $(shell cat VERSION)
|
VERSION = $(shell cat VERSION)
|
||||||
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT -e DISABLE_WARN_OUTSIDE_CONTAINER=1
|
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT
|
||||||
|
|
||||||
# build docker image (dockerfiles/Dockerfile.build)
|
# build docker image (dockerfiles/Dockerfile.build)
|
||||||
.PHONY: build_docker_image
|
.PHONY: build_docker_image
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
FROM dockercore/golang-cross@sha256:d24e7affa3a85d460d2303c2549f03fc866f2b97d771ccf07b0e6e2b411dd207
|
FROM dockercore/golang-cross@sha256:d24e7affa3a85d460d2303c2549f03fc866f2b97d771ccf07b0e6e2b411dd207
|
||||||
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
|
|
|
@ -25,6 +25,7 @@ RUN go get -d github.com/dnephin/filewatcher && \
|
||||||
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
||||||
|
|
||||||
ENV CGO_ENABLED=0 \
|
ENV CGO_ENABLED=0 \
|
||||||
PATH=$PATH:/go/src/github.com/docker/cli/build
|
PATH=$PATH:/go/src/github.com/docker/cli/build \
|
||||||
|
DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
CMD sh
|
CMD sh
|
||||||
|
|
|
@ -12,5 +12,6 @@ RUN go get -d github.com/alecthomas/gometalinter && \
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||||
ENTRYPOINT ["/usr/local/bin/gometalinter"]
|
ENTRYPOINT ["/usr/local/bin/gometalinter"]
|
||||||
CMD ["--config=gometalinter.json", "./..."]
|
CMD ["--config=gometalinter.json", "./..."]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
FROM debian:stretch-slim
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y install make shellcheck && \
|
apt-get -y install make shellcheck && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
Loading…
Reference in New Issue