Skip to content

Commit ed4cfc4

Browse files
committed
Merge pull request #42 from mboersma/no-goupx-needed
ref(Makefile): use go 1.6.2 and compress with upx directly
2 parents 7d09014 + fd63670 commit ed4cfc4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ REPO_PATH = github.com/deis/registry
1111

1212
# The following variables describe the containerized development environment
1313
# and other build options
14-
DEV_ENV_IMAGE := quay.io/deis/go-dev:0.10.0
14+
DEV_ENV_IMAGE := quay.io/deis/go-dev:0.11.1
1515
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
1616
DEV_ENV_PREFIX := docker run --rm -e GO15VENDOREXPERIMENT=1 -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
1717
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
18-
LDFLAGS := "-s -X main.version=${VERSION}"
18+
LDFLAGS := "-s -w -X main.version=${VERSION}"
1919
BINDIR := ./rootfs/opt/registry/sbin
2020

2121
# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY.
@@ -50,7 +50,7 @@ docker-push: check-docker
5050
build-binary:
5151
${DEV_ENV_PREFIX} -e CGO_ENABLED=0 ${DEV_ENV_IMAGE} go build -a -installsuffix cgo -ldflags ${LDFLAGS} -o $(BINDIR)/${SHORT_NAME} main.go
5252
$(call check-static-binary,$(BINDIR)/${SHORT_NAME})
53-
${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE} goupx --strip-binary -9 --brute $(BINDIR)/${SHORT_NAME}
53+
${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE} upx -9 --brute $(BINDIR)/${SHORT_NAME}
5454

5555
# Deploy is a Kubernetes-oriented target
5656
deploy: kube-secret kube-service kube-rc

0 commit comments

Comments
 (0)