-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhooked.yaml
More file actions
70 lines (61 loc) · 2.07 KB
/
Copy pathhooked.yaml
File metadata and controls
70 lines (61 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
env:
default:
GREETING: Hello
scripts:
clean:
$cmd: |
docker compose -f recipes/docker-compose.lazy-tcp-proxy.yml down || true
docker stop lazy-tcp-proxy example-lazy-tcp-proxy || true
docker rm lazy-tcp-proxy example-lazy-tcp-proxy || true
docker rmi lazy-tcp-proxy || true
docker rmi mountainpass/lazy-tcp-proxy || true
down:
$cmd: docker stop lazy-tcp-proxy && docker rm lazy-tcp-proxy
build:
$cmd: |
docker compose -f recipes/docker-compose.lazy-tcp-proxy.yml down || true
docker stop lazy-tcp-proxy example-lazy-tcp-proxy || true
docker rm lazy-tcp-proxy example-lazy-tcp-proxy || true
docker rmi lazy-tcp-proxy || true
docker rmi mountainpass/lazy-tcp-proxy || true
docker build ./lazy-tcp-proxy/ -t lazy-tcp-proxy
up:
$cmd: |
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-e IDLE_TIMEOUT_SECS=30 \
-e POLL_INTERVAL_SECS=5 \
-p "8080:8080" \
-p "9000-9099:9000-9099" \
--restart=always \
--name lazy-tcp-proxy \
lazy-tcp-proxy
publish:
$cmd: |
cd lazy-tcp-proxy
VERSION=1.`date +%Y%m%d`.`git rev-parse --short=8 HEAD`
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag mountainpass/lazy-tcp-proxy:docker-$VERSION \
--tag mountainpass/lazy-tcp-proxy:latest \
--push \
.
publish-k8s:
$cmd: |
cd lazy-tcp-proxy
VERSION=1.`date +%Y%m%d`.`git rev-parse --short=8 HEAD`
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg BUILD_TAGS=kubernetes \
--tag mountainpass/lazy-tcp-proxy:k8s-$VERSION \
--push \
.
ghsetup:
$cmd: |
gh auth login
gh repo set-default
release:
$cmd: |
VERSION=1.`date +%Y%m%d`.`git rev-parse --short=8 HEAD`
DOCKERHUB_URL=https://hub.docker.com/repository/docker/mountainpass/lazy-tcp-proxy/tags/$VERSION/
gh release create "$VERSION" --title "$VERSION" --notes "Docker image: $DOCKERHUB_URL"