From 678e9b98457098fd4fa37840b8c272e2883ae918 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Thu, 12 Nov 2020 22:39:08 +0800 Subject: [PATCH] doc: add info for docker --- .goreleaser.yml | 12 ++++++++---- Dockerfile | 2 +- README.md | 7 ++++++- main.go | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ec8ed08..104cedd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,7 +17,7 @@ before: hooks: - go mod tidy -# https://goreleaser.com/build/ +# https://goreleaser.com/customization/build/ builds: - id: default env: @@ -46,7 +46,7 @@ builds: - goos: darwin goarch: 386 -# https://goreleaser.com/archive/ +# https://goreleaser.com/customization/archive/ archives: - id: default builds: @@ -63,10 +63,14 @@ archives: - config/**/* - systemd/* -# https://goreleaser.com/snapshots/ +# https://goreleaser.com/customization/snapshots/ snapshot: name_template: "dev@{{.ShortCommit}}" -# https://goreleaser.com/checksum/ +# https://goreleaser.com/customization/checksum/ checksum: name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt" + +# https://goreleaser.com/customization/release/ +release: + draft: true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 85e9f5a..e9ac346 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:alpine AS build-env RUN apk --no-cache add build-base git gcc ADD . /src -RUN cd /src && go build -o glider +RUN cd /src && go build -v -i -ldflags "-s -w" # final stage FROM alpine diff --git a/README.md b/README.md index a741a62..7cc38a3 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,11 @@ we can set up local listeners as proxy servers, and forward requests to internet Download: - [https://github.com/nadoo/glider/releases](https://github.com/nadoo/glider/releases) +Docker: +```bash +docker pull nadoo/glider +``` + ArchLinux: ```bash sudo pacman -S glider @@ -88,7 +93,7 @@ glider -h click to see details ```bash -glider 0.12.2 usage: +glider 0.12.3 usage: -checkdisabledonly check disabled fowarders only -checkinterval int diff --git a/main.go b/main.go index 1a1e1cc..b214390 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ import ( ) var ( - version = "0.12.2" + version = "0.12.3" config = parseConfig() )