1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2025-07-01 04:42:36 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
Austin S. Hemmelgarn
917d26e175
Add a minimalistic health check to the Docker image.
This adds a minimalistic check to the Docker image that verifies that
HAProxy is actually listening on port 2375, marking the image as
unhealthy if the check fails. This, in turn, allows container
orchestration tools to notify an administrator that something is wrong
or even restart the container automatically.

This utilizes the Busybox implementation of `netcat`, which is already
included in the image itself, and thus has functionally zero impact on
image size. The check interval is set for once every 60 seconds, which
is reasonably normal for small services like this.
2021-02-09 10:53:52 -05:00
Jairo Llopis
6dce4aab3c Remove unused metadata
Since #40, the correct labels are applied at build. These lines were 🗑 now.

@Tecnativa TT27819
2021-02-09 08:38:42 +00:00
Jairo Llopis
74c627bb27 Fix build
- Update labels to match those from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys
- Add missing build args.
- Remove unneeded python (which was failing to install, BTW) from the image.
- Remove `hooks` folder, which was used to build the image automatically in the Docker Hub. It's done in GitHub Actions now.
2020-12-14 09:16:47 +00:00
João Marques
e84babd1c4
Add tests and CI (#34)
* Add first version of tests

From https://github.com/Tecnativa/docker-socket-proxy/pull/14

* Expand tests

* Add GH CI

* Apply suggestions

* Apply autopretty template + fix prettier

* Fix isort

* Apply autoprettier

* Fix VSCode settings

* Make tests run in parallel

* Build docker image before testing

* Update workspace settings

* Try multi-platform builds and push to ghcr.io

* Push to docker hub as well from ci

* Upgrade autopretty

* Update pyproject configurations

* Improve test configuration and execution

TT26468

* Provide initial conftest

* Improve tests

* Add python3 in image

* Remove POST rule from proxy

* Build image before testing and push at the end

Builds the image (in single arch) before testing
Loads the image into local docker (See https://github.com/docker/build-push-action#export-image-to-docker)
Rebuilds and pushes the final image in multi-arch at the end.

* Fix python path

* Remove build fixture from tests to see if image is built in CI

* Organize docker tests definition and document

* Restore fixture allowing usage for local testing

This reverts commit dc0b60e63f and allows using `--prebuild` CLI flag for pytest when doing local tests.

Co-authored-by: Jairo Llopis <jairo.llopis@tecnativa.com>
2020-12-10 08:52:55 +00:00
javieryanez
a07d4ae4d9 Sorted environment variables alphabetically 2019-08-23 13:45:33 +01:00
javieryanez
bb302b5470 Added LOG_LEVEL environment variable to set logging severity level. 2019-08-23 13:45:33 +01:00
ViViDboarder
e46d26a7c4 First stab at multi-arch builds 2019-08-16 14:57:42 +02:00
Andre Zoledziowski
5a7bc8fd17 Added explicit "allow restarts" permission. 2019-01-21 15:23:09 +00:00
Andre Zoledziowski
3a1d5bb03a Added missing experimental SESSION API 2019-01-21 15:23:09 +00:00
Jairo Llopis
8bb3bce15a
Support Docker API 1.37
Add CONFIGS and DISTRIBUTION sections.
2019-01-08 08:57:45 +00:00
Jairo Llopis
7da0037161
Use HAProxy 1.9 and log to stdout 2019-01-08 08:57:45 +00:00
Bret Fisher
a249e65a77 Update haproxy to current stable 1.8 2018-12-12 11:00:15 +00:00
Cell
746c20f2c8 FIX label with URL of the repo (#5) 2018-02-19 10:09:22 +00:00
Jairo Llopis
17ff117058 🎉 Hello world 2017-03-29 13:06:56 +02:00