Skip to content

Commit 2c32419

Browse files
Merge pull request #513 from gliderlabs/master
release v3.2.14
2 parents e1467ec + cc55ddc commit 2c32419

File tree

8 files changed

+330
-18
lines changed

8 files changed

+330
-18
lines changed

circle.yml .circleci/config.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
machine: true
55
working_directory: /home/circleci/logspout
66
environment:
7-
DEBUG: true
7+
DEBUG: "true"
88
steps:
99
- checkout
1010
- run: |
@@ -36,3 +36,32 @@ jobs:
3636
if [ "${CIRCLE_BRANCH}" == "release" ]; then
3737
make release
3838
fi
39+
publish:
40+
machine:
41+
image: ubuntu-1604:202007-01
42+
working_directory: /home/circleci/logspout
43+
environment:
44+
DEBUG: "true"
45+
steps:
46+
- checkout
47+
- run: make publish-requirements
48+
- run: make publish-test
49+
- run: |
50+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
51+
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
52+
make publish-master
53+
fi
54+
- run: |
55+
if [ "${CIRCLE_BRANCH}" == "release" ]; then
56+
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
57+
make publish-release
58+
fi
59+
60+
workflows:
61+
version: 2
62+
build_and_publish:
63+
jobs:
64+
- build
65+
- publish:
66+
requires:
67+
- build

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ All notable changes to this project will be documented in this file.
1010

1111
### Changed
1212

13+
## [v3.2.14] - 2021-12-03
14+
### Fixed
15+
- @0xflotus fix: typo error in project name
16+
17+
### Changed
18+
- @skyzh upgrade dockerclient dependency
19+
- @merowing1279 retrieve logs from already started containers
20+
- @odidev Release docker image for arm64
1321

1422
## [v3.2.13] - 2020-11-26
1523
### Changed
@@ -255,7 +263,8 @@ All notable changes to this project will be documented in this file.
255263
- Base container is now Alpine
256264
- Moved to gliderlabs organization
257265

258-
[unreleased]: https://github.com/gliderlabs/logspout/compare/v3.2.13...HEAD
266+
[unreleased]: https://github.com/gliderlabs/logspout/compare/v3.2.14...HEAD
267+
[v3.2.14]: https://github.com/gliderlabs/logspout/compare/v3.2.13...v3.2.14
259268
[v3.2.13]: https://github.com/gliderlabs/logspout/compare/v3.2.12...v3.2.13
260269
[v3.2.12]: https://github.com/gliderlabs/logspout/compare/v3.2.11...v3.2.12
261270
[v3.2.11]: https://github.com/gliderlabs/logspout/compare/v3.2.10...v3.2.11

Makefile

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.PHONY: build
2-
31
NAME=logspout
42
VERSION=$(shell cat VERSION)
53
# max image size of 40MB
@@ -110,22 +108,45 @@ test-tls-custom:
110108
docker stop $(NAME)-tls-custom || true
111109
docker rm $(NAME)-tls-custom || true
112110

111+
.PHONY: release
113112
release:
114113
rm -rf release && mkdir release
115114
go get github.com/progrium/gh-release/...
116115
cp build/* release
117116
gh-release create gliderlabs/$(NAME) $(VERSION) \
118117
$(shell git rev-parse --abbrev-ref HEAD) $(VERSION)
119118

119+
.PHONY: circleci
120120
circleci:
121121
ifneq ($(CIRCLE_BRANCH), release)
122122
echo build-$$CIRCLE_BUILD_NUM > VERSION
123123
endif
124124

125+
.PHONY: clean
125126
clean:
126127
rm -rf build/
127128
docker rm $(shell docker ps -aq) || true
128129
docker rmi $(NAME):dev $(NAME):$(VERSION) || true
129130
docker rmi $(shell docker images -f 'dangling=true' -q) || true
130131

131-
.PHONY: release clean
132+
.PHONY: publish-requirements
133+
publish-requirements:
134+
mkdir -vp ~/.docker/cli-plugins/
135+
curl --silent -L --output ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64
136+
chmod a+x ~/.docker/cli-plugins/docker-buildx
137+
docker run -it --rm --privileged tonistiigi/binfmt --install all
138+
docker buildx create --use --name mybuilder
139+
140+
.PHONY: publish-test
141+
publish-test:
142+
docker buildx build --load --platform linux/amd64 -t gliderlabs/$(NAME):linux-amd64-${CIRCLE_BRANCH} .
143+
docker buildx build --load --platform linux/arm64 -t gliderlabs/$(NAME):linux-arm64-${CIRCLE_BRANCH} .
144+
docker images
145+
146+
.PHONY: publish-master
147+
publish-master:
148+
docker buildx build --push --platform linux/arm64,linux/amd64 -t gliderlabs/$(NAME):master -t gliderlabs/$(NAME):latest .
149+
150+
.PHONY: publish-release
151+
publish-release:
152+
docker buildx build --push --platform linux/arm64,linux/amd64 -t gliderlabs/$(NAME):$(VERSION) .

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ logspout supports modification of the client TLS settings via environment variab
311311
| Environment Variable | Description |
312312
| :--- | :--- |
313313
| `LOGSPOUT_TLS_DISABLE_SYSTEM_ROOTS` | when set to `true` it disables loading the system trust store into the trust store of logspout |
314-
| `LOGSPOUT_TLS_CA_CERTS` | a comma separated list of filesystem paths to pem encoded CA certificates that should be added to logsput's TLS trust store. Each pem file can contain more than one certificate |
314+
| `LOGSPOUT_TLS_CA_CERTS` | a comma separated list of filesystem paths to pem encoded CA certificates that should be added to logspout's TLS trust store. Each pem file can contain more than one certificate |
315315
| `LOGSPOUT_TLS_CLIENT_CERT` | filesystem path to pem encoded x509 client certificate to load when TLS mutual authentication is desired |
316316
| `LOGSPOUT_TLS_CLIENT_KEY` | filesystem path to pem encoded client private key to load when TLS mutual authentication is desired |
317317
| `LOGSPOUT_TLS_HARDENING` | when set to `true` it enables stricter client TLS settings designed to mitigate some known TLS vulnerabilities |

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.2.13
1+
v3.2.14

go.mod

+14-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@ module github.com/gliderlabs/logspout
33
go 1.13
44

55
require (
6+
github.com/Microsoft/hcsshim v0.8.14 // indirect
67
github.com/Sirupsen/logrus v0.10.1-0.20160601113210-f3cfb454f4c2 // indirect
7-
github.com/docker/docker v1.4.2-0.20160708193732-ad969f1aa782 // indirect
8+
github.com/containerd/cgroups v0.0.0-20210114181951-8a68de567b68 // indirect
9+
github.com/containerd/containerd v1.4.3 // indirect
10+
github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7 // indirect
11+
github.com/docker/docker v20.10.3+incompatible // indirect
812
github.com/docker/engine-api v0.3.2-0.20160708123604-98348ad6f9c8 // indirect
9-
github.com/docker/go-units v0.3.1 // indirect
10-
github.com/fsouza/go-dockerclient v0.0.0-20160624230725-1a3d0cfd7814
13+
github.com/fsouza/go-dockerclient v1.7.0
14+
github.com/gogo/protobuf v1.3.2 // indirect
1115
github.com/gorilla/context v0.0.0-20160525203319-aed02d124ae4 // indirect
12-
github.com/gorilla/mux v0.0.0-20160605233521-9fa818a44c2b
16+
github.com/gorilla/mux v1.8.0
1317
github.com/hashicorp/go-cleanhttp v0.0.0-20160407174126-ad28ea4487f0 // indirect
18+
github.com/hashicorp/golang-lru v0.5.4 // indirect
1419
github.com/looplab/logspout-logstash v0.0.0-20171130125839-68a4e47e757d
20+
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
1521
github.com/opencontainers/runc v1.0.0-rc1.0.20160706165155-9d7831e41d3e // indirect
16-
github.com/stretchr/testify v1.4.0 // indirect
17-
golang.org/x/net v0.0.0-20160707223729-f841c39de738
18-
golang.org/x/sys v0.0.0-20160704031755-a408501be4d1 // indirect
22+
go.opencensus.io v0.22.6 // indirect
23+
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
24+
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
25+
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
1926
)

0 commit comments

Comments
 (0)