mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
doc: add info for docker
This commit is contained in:
parent
453fe925b3
commit
678e9b9845
@ -17,7 +17,7 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
# https://goreleaser.com/build/
|
# https://goreleaser.com/customization/build/
|
||||||
builds:
|
builds:
|
||||||
- id: default
|
- id: default
|
||||||
env:
|
env:
|
||||||
@ -46,7 +46,7 @@ builds:
|
|||||||
- goos: darwin
|
- goos: darwin
|
||||||
goarch: 386
|
goarch: 386
|
||||||
|
|
||||||
# https://goreleaser.com/archive/
|
# https://goreleaser.com/customization/archive/
|
||||||
archives:
|
archives:
|
||||||
- id: default
|
- id: default
|
||||||
builds:
|
builds:
|
||||||
@ -63,10 +63,14 @@ archives:
|
|||||||
- config/**/*
|
- config/**/*
|
||||||
- systemd/*
|
- systemd/*
|
||||||
|
|
||||||
# https://goreleaser.com/snapshots/
|
# https://goreleaser.com/customization/snapshots/
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "dev@{{.ShortCommit}}"
|
name_template: "dev@{{.ShortCommit}}"
|
||||||
|
|
||||||
# https://goreleaser.com/checksum/
|
# https://goreleaser.com/customization/checksum/
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
||||||
|
|
||||||
|
# https://goreleaser.com/customization/release/
|
||||||
|
release:
|
||||||
|
draft: true
|
@ -2,7 +2,7 @@
|
|||||||
FROM golang:alpine AS build-env
|
FROM golang:alpine AS build-env
|
||||||
RUN apk --no-cache add build-base git gcc
|
RUN apk --no-cache add build-base git gcc
|
||||||
ADD . /src
|
ADD . /src
|
||||||
RUN cd /src && go build -o glider
|
RUN cd /src && go build -v -i -ldflags "-s -w"
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
@ -74,6 +74,11 @@ we can set up local listeners as proxy servers, and forward requests to internet
|
|||||||
Download:
|
Download:
|
||||||
- [https://github.com/nadoo/glider/releases](https://github.com/nadoo/glider/releases)
|
- [https://github.com/nadoo/glider/releases](https://github.com/nadoo/glider/releases)
|
||||||
|
|
||||||
|
Docker:
|
||||||
|
```bash
|
||||||
|
docker pull nadoo/glider
|
||||||
|
```
|
||||||
|
|
||||||
ArchLinux:
|
ArchLinux:
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S glider
|
sudo pacman -S glider
|
||||||
@ -88,7 +93,7 @@ glider -h
|
|||||||
<summary>click to see details</summary>
|
<summary>click to see details</summary>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
glider 0.12.2 usage:
|
glider 0.12.3 usage:
|
||||||
-checkdisabledonly
|
-checkdisabledonly
|
||||||
check disabled fowarders only
|
check disabled fowarders only
|
||||||
-checkinterval int
|
-checkinterval int
|
||||||
|
Loading…
Reference in New Issue
Block a user