build-labels 0.0.76 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 184e1d17e16a503f83dab878c391b8e8571c2ac71285ef697cebb75936dd556c
4
- data.tar.gz: 4e9c5be493bbfda785871547691f8aa6110842917aa8277056bc671be6dd834b
3
+ metadata.gz: 8c98d7473c265c1f954d96ece1cfa66d725076c82a77575eb818e0f555203d8e
4
+ data.tar.gz: 0e255d2b86daef6f54e974b42ccb170e45ac36f71d7986b7c4b996999814826e
5
5
  SHA512:
6
- metadata.gz: ad03e9efa477f1772d0c62e293f7775087620c53ab126eff6d833332f4a4d4cc1eef606968cf4035bac9fd2d1d56dfc2e820ed131961bdf2cac62194daca5d23
7
- data.tar.gz: 05da2dd8fec543a246af8aaf0cca3f6b6450d68fecc0d87703d310c6e5aeedc8a5aa719d5c666c03ba715581b3b075d228e0dce8d9fe288bf21458ed8d0b6d04
6
+ metadata.gz: 78c6fea7954548de03d0253fc93fa101c29b405577a6cb9da917618af6e3fc9ea60d1b30b54d0b43e36b6e4f80e3b25f0c07c358f53ca67928ff61107d53c31e
7
+ data.tar.gz: 924f79076a6224150b2137851fa98a7b9d8f8f95c356d94c08cf5d3f908c438c4d9ccf8044925d0776b4ee958e80adde8fe5e6e1b1aa6280e705e75a6ed0c30b
@@ -80,26 +80,32 @@ detect_arch() {
80
80
  x86_64|amd64)
81
81
  docker_arch="x86_64"
82
82
  buildx_arch="amd64"
83
+ compose_arch="x86_64"
83
84
  ;;
84
85
  aarch64|arm64)
85
86
  docker_arch="aarch64"
86
87
  buildx_arch="arm64"
88
+ compose_arch="aarch64"
87
89
  ;;
88
90
  armv7l|armv7)
89
91
  docker_arch="armhf"
90
92
  buildx_arch="arm-v7"
93
+ compose_arch="armv7"
91
94
  ;;
92
95
  armv6l|armv6)
93
96
  docker_arch="armel"
94
97
  buildx_arch="arm-v6"
98
+ compose_arch="armv6"
95
99
  ;;
96
100
  ppc64le)
97
101
  docker_arch="ppc64le"
98
102
  buildx_arch="ppc64le"
103
+ compose_arch="ppc64le"
99
104
  ;;
100
105
  s390x)
101
106
  docker_arch="s390x"
102
107
  buildx_arch="s390x"
108
+ compose_arch="s390x"
103
109
  ;;
104
110
  *)
105
111
  echo "Unsupported architecture: $arch" >&2
@@ -192,6 +198,28 @@ install_buildx() {
192
198
  chmod 0755 "$plugin_dir/docker-buildx"
193
199
  }
194
200
 
201
+ install_compose() {
202
+ detect_arch
203
+ compose_version="${COMPOSE_VERSION:-}"
204
+ if [ -z "$compose_version" ]; then
205
+ compose_version="$(
206
+ curl -fsSL https://api.github.com/repos/docker/compose/releases/latest \
207
+ | sed -n 's/.*"tag_name": "\(v[0-9.]*\)".*/\1/p' \
208
+ | head -n 1
209
+ )"
210
+ fi
211
+ if [ -z "$compose_version" ]; then
212
+ echo "Unable to determine latest compose version" >&2
213
+ exit 1
214
+ fi
215
+ plugin_dir="/usr/local/lib/docker/cli-plugins"
216
+ mkdir -p "$plugin_dir"
217
+ curl -fsSL \
218
+ -o "$plugin_dir/docker-compose" \
219
+ "https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-linux-${compose_arch}"
220
+ chmod 0755 "$plugin_dir/docker-compose"
221
+ }
222
+
195
223
  parse_args "$@"
196
224
 
197
225
  if command -v apt-get >/dev/null 2>&1; then
@@ -199,14 +227,17 @@ if command -v apt-get >/dev/null 2>&1; then
199
227
  apt-get install -y --no-install-recommends git ca-certificates curl tar
200
228
  install_docker_static
201
229
  install_buildx
230
+ install_compose
202
231
  rm -rf /var/lib/apt/lists/*
203
232
  elif command -v apk >/dev/null 2>&1; then
204
233
  apk add --no-cache git ca-certificates curl tar
205
234
  install_docker_static
206
235
  install_buildx
236
+ install_compose
207
237
  else
208
238
  echo "Unsupported package manager: expected apt or apk." >&2
209
239
  exit 1
210
240
  fi
211
241
 
212
242
  docker -v
243
+ docker compose version
@@ -27,4 +27,4 @@ services:
27
27
  args:
28
28
  - MAP_BACKEND=prod
29
29
  volumes:
30
- - ../docker_build_results_prod:/app/results
30
+ - ../docker_build_results_prod:/app/results
@@ -84,7 +84,7 @@ module BuildLabels
84
84
  end
85
85
  end
86
86
  compose['services'].delete_if do |name, svc| ! svc.key?('build') end
87
-
87
+ compose.delete 'volumes'
88
88
  puts compose.to_yaml
89
89
  end
90
90
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module BuildLabels
2
2
  class Builder
3
- VERSION = '0.0.76'
3
+ VERSION = '0.0.78'
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-labels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.76
4
+ version: 0.0.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-17 00:00:00.000000000 Z
11
+ date: 2026-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake