-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
125 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod tidy | ||
# you may remove this if you don't need go generate | ||
- go generate ./... | ||
|
||
snapshot: | ||
name_template: '{{ .Tag }}' | ||
checksum: | ||
name_template: 'checksums.txt' | ||
changelog: | ||
skip: true | ||
|
||
builds: | ||
- id: client | ||
main: cmd/client/main.go | ||
binary: bin/egctl | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
ldflags: | ||
- -s -w | ||
- -X github.com/megaease/easegress/pkg/version.RELEASE=v1.0.0 | ||
- -X github.com/megaease/easegress/pkg/version.COMMIT={{.Commit}} | ||
- -X github.com/megaease/easegress/pkg/version.REPO=megaease/easegress | ||
|
||
- id: server | ||
main: cmd/server/main.go | ||
binary: bin/easegress-server | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
ldflags: | ||
- -s -w | ||
- -X github.com/megaease/easegress/pkg/version.RELEASE=v1.0.0 | ||
- -X github.com/megaease/easegress/pkg/version.COMMIT={{.Commit}} | ||
- -X github.com/megaease/easegress/pkg/version.REPO=megaease/easegress | ||
|
||
archives: | ||
- id: easegress | ||
format: tar.gz | ||
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}" | ||
files: | ||
- none* | ||
|
||
release: | ||
github: | ||
owner: megaease | ||
name: easegress | ||
name_template: "{{ .ProjectName }}-v{{ .Version }}" | ||
|
||
dockers: | ||
- image_templates: | ||
- megaease/easegress:latest | ||
- megaease/easegress:{{ .Tag }} | ||
|
||
goos: linux | ||
goarch: amd64 | ||
ids: | ||
- client | ||
- server | ||
|
||
dockerfile: build/package/Dockerfile.goreleaser | ||
|
||
extra_files: | ||
- build/package/entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM golang:alpine AS builder | ||
RUN apk --no-cache add make git | ||
|
||
WORKDIR /opt/easegress | ||
COPY . . | ||
|
||
RUN make clean && make build | ||
|
||
# --- | ||
|
||
FROM alpine:3.13 | ||
|
||
WORKDIR /opt/easegress | ||
|
||
COPY build/package/entrypoint.sh / | ||
COPY --from=builder /opt/easegress/bin/ /opt/easegress/bin/ | ||
|
||
RUN apk --no-cache add tini && \ | ||
chmod +x /entrypoint.sh /opt/easegress/bin/* | ||
|
||
ENV PATH /opt/easegress/bin:$PATH | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM alpine:3.13 | ||
|
||
WORKDIR /opt/easegress | ||
|
||
ADD egctl easegress-server /opt/easegress/bin/ | ||
COPY build/package/entrypoint.sh / | ||
|
||
RUN apk --no-cache add tini && \ | ||
chmod +x /entrypoint.sh /opt/easegress/bin/* | ||
|
||
ENV PATH /opt/easegress/bin:$PATH | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] |
4 changes: 0 additions & 4 deletions
4
rootfs/ubuntu/entrypoint.server.sh → build/package/entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.