File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ build: check-docker
4040# For cases where we're building from local
4141# We also alter the RC file to set the image name.
4242docker-build : check-docker build
43- docker build --rm -t ${IMAGE} .
43+ docker build --rm -t ${IMAGE} rootfs
4444 docker tag -f ${IMAGE} ${MUTABLE_IMAGE}
4545
4646# Push to a registry that Kubernetes can access.
4747docker-push : check-docker
4848 docker push ${IMAGE}
4949
5050build-binary :
51- ${DEV_ENV_PREFIX} -e CGO_ENABLED=0 ${DEV_ENV_IMAGE} go build -a -installsuffix cgo -ldflags ${LDFLAGS} -o $(BINDIR ) /${SHORT_NAME} main.go
51+ ${DEV_ENV_CMD} go build -ldflags ${LDFLAGS} -o $(BINDIR ) /${SHORT_NAME} main.go
5252 $(call check-static-binary,$(BINDIR ) /${SHORT_NAME})
53- ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE } upx -9 --brute $(BINDIR ) /${SHORT_NAME}
53+ ${DEV_ENV_CMD } upx -9 --brute $(BINDIR ) /${SHORT_NAME}
5454
5555# Deploy is a Kubernetes-oriented target
5656deploy : kube-secret kube-service kube-rc
Original file line number Diff line number Diff line change 1+ FROM quay.io/deis/base:0.2.0
2+
3+ COPY . /
4+
5+ RUN apt-get update \
6+ && apt-get install -y \
7+ git \
8+ golang \
9+ make \
10+ --no-install-recommends \
11+ && export DOCKER_REGISTRY_TAG=minio \
12+ DOCKER_REGISTRY_REPO=https://github.com/deis/distribution.git \
13+ DISTRIBUTION_DIR=/go/src/github.com/docker/distribution \
14+ && export GOPATH=/go:$DISTRIBUTION_DIR/Godeps/_workspace \
15+ && git clone -b $DOCKER_REGISTRY_TAG --single-branch $DOCKER_REGISTRY_REPO $DISTRIBUTION_DIR \
16+ && cd $DISTRIBUTION_DIR \
17+ && make binaries \
18+ && cp bin/* /bin/ \
19+ && rm -rf /go \
20+ && apt-get remove -y --auto-remove --purge \
21+ git \
22+ golang \
23+ make \
24+ && apt-get clean \
25+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
26+
27+ VOLUME ["/var/lib/registry" ]
28+ CMD ["/opt/registry/sbin/registry" ]
29+ EXPOSE 5000
30+
31+ ENV WORKFLOW_RELEASE 2.0.0
You can’t perform that action at this time.
0 commit comments