Skip to content

Commit

Permalink
Merge pull request #78 from synfinatic/tweaks
Browse files Browse the repository at this point in the history
small bugfixes for makefile & dockerfile
  • Loading branch information
synfinatic authored Jan 9, 2022
2 parents 50ab1d1 + d408f0e commit 7b58f4f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

## Unreleased

## v0.0.9 - 2022-01-10

Added:

- Linux/ARMv5 support

Changed:

- Use Go 1.16
- Simplify docker images for ARM builds
- --cache-ttl is now 3 hours
- ARMv6/v7 now have unique binaries and use hardware floating point
- No more "arm32" builds which isn't a real ARM arch

## v0.0.8 - 2021-11-07

Changed:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine as builder
FROM golang:1.16-alpine as builder

ARG VERSION

Expand Down
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ include help.mk # place after ALL target and before all other targets

release: build-release ## Build and sign official release
cd dist && shasum -a 256 udp-proxy-2020* | gpg --clear-sign >release.sig
@echo "Now run `make docker-release`?"

build-release: clean linux-amd64 linux-mips64 linux-arm64 linux-arm32 linux-arm32hf darwin-amd64 freebsd docker ## Build our release binaries
build-release: clean linux-amd64 linux-mips64 linux-arm darwin-amd64 freebsd docker ## Build our release binaries

.PHONY: run
run: cmd/*.go ## build and run udp-proxy-2020 using $UDP_PROXY_2020_ARGS
Expand Down Expand Up @@ -146,7 +147,7 @@ freebsd: .vagrant-check ## Build all FreeBSD/pfSense binaries using Vagrant VM
vagrant provision && vagrant up && vagrant ssh-config >.vagrant-ssh && \
scp -F .vagrant-ssh default:$(PROJECT_NAME)/dist/*freebsd* dist/

freebsd-shell: ## SSH into FreeBSD Vagrant VM
freebsd-shell: ## Get a shell in FreeBSD Vagrant VM
vagrant ssh

freebsd-clean: ## Destroy FreeBSD Vagrant VM
Expand Down Expand Up @@ -242,7 +243,7 @@ linux-mips64: .prepare ## Build Linux/MIPS64 static binary in Docker container
$(MIPS64_IMAGE)

.PHONY: linux-mips64-shell
linux-mips64-shell: .prepare ## SSH into Linux/MIPS64 build Docker container
linux-mips64-shell: .prepare ## Get a shell in Linux/MIPS64 build Docker container
docker run -it --rm \
--volume $(shell pwd):/build/udp-proxy-2020 \
--entrypoint /bin/bash $(MIPS64_IMAGE)
Expand Down Expand Up @@ -272,7 +273,7 @@ linux-arm: .prepare ## Build Linux/arm static binaries in Docker container
$(ARM_IMAGE)

.PHONY: linux-arm-shell
linux-arm-shell: .prepare ## SSH into Linux/arm build Docker container
linux-arm-shell: .prepare ## Get a shell in Linux/arm build Docker container
docker run -it --rm \
--volume $(shell pwd):/build/udp-proxy-2020 \
--entrypoint /bin/bash $(ARM_IMAGE)
Expand Down Expand Up @@ -346,5 +347,5 @@ docker-release: docker ## Tag and push docker images Linux AMD64/ARM64
--platform linux/arm64,linux/amd64 \
--push -f Dockerfile .

docker-clean: ## remove all docker build images
docker image rm $(ARM64_IMAGE) $(ARM32_IMAGE) $(ARM32HF_IMAGE) $(AMD64_IMAGE) $(MIPS64_IMAGE) || true
docker-clean: ## Remove all docker build images
docker image rm $(ARM_IMAGE) $(AMD64_IMAGE) $(MIPS64_IMAGE) || true

0 comments on commit 7b58f4f

Please sign in to comment.