From 1b58b559da7d1e31b48391dd5a97154887d9acf2 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Thu, 1 Aug 2024 16:42:51 +0300 Subject: [PATCH] import docker-compose-plugin-2.26.1-1.el9 --- .docker-compose-plugin.metadata | 2 ++ .gitignore | 2 ++ SPECS/docker-compose-plugin.spec | 54 ++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .docker-compose-plugin.metadata create mode 100644 .gitignore create mode 100644 SPECS/docker-compose-plugin.spec diff --git a/.docker-compose-plugin.metadata b/.docker-compose-plugin.metadata new file mode 100644 index 0000000..5d21b47 --- /dev/null +++ b/.docker-compose-plugin.metadata @@ -0,0 +1,2 @@ +19a5f8ebc14bcbb8c0c752ac3aafec16a4793c8e SOURCES/compose-2.26.1.tar.gz +051b54dc77605dea1b0b25628ea56e44c573d0fa SOURCES/vendor.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab4c6ff --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/compose-2.26.1.tar.gz +SOURCES/vendor.tar.gz diff --git a/SPECS/docker-compose-plugin.spec b/SPECS/docker-compose-plugin.spec new file mode 100644 index 0000000..818b3d5 --- /dev/null +++ b/SPECS/docker-compose-plugin.spec @@ -0,0 +1,54 @@ +%global debug_package %{nil} + +Name: docker-compose-plugin +Version: 2.26.1 +Release: 1%{dist}.inferit +Summary: Docker Compose (V2) plugin for the Docker CLI +License: Apache-2.0 +URL: https://github.com/docker/compose +Source: compose-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: golang%{?_isa} >= 1.21 +Requires: docker-ce + + +%description +Docker Compose is a tool for running multi-container applications on Docker defined using the Compose file format. A Compose file is used to define how the one or more containers that make up your application are configured. Once you have a Compose file, you can create and start your application with a single command: docker compose up. +About update and backward compatibility + +Docker Compose V2 is a major version bump release of Docker Compose. It has been completely rewritten from scratch in Golang (V1 was in Python). The installation instructions for Compose V2 differ from V1. V2 is not a standalone binary anymore, and installation scripts will have to be adjusted. Some commands are different. + +For a smooth transition from legacy docker-compose 1.xx, please consider installing compose-switch to translate docker-compose ... commands into Compose V2's docker compose .... . Also check V2's --compatibility flag. + +%prep +%setup -q -a 1 -n compose-%{version} + +%build +export CGO_CFLAGS="-I%{_includedir}/openssl3 ${CFLAGS}" +export CGO_CXXFLAGS="-I%{_includedir}/openssl3 ${CXXFLAGS}" + +go build \ + -mod=vendor \ + -buildmode=pie \ + -trimpath \ + -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" \ + -o bin/docker-compose ./cmd/ + +%install +install -d -m 0755 "%{buildroot}/usr/libexec/docker/cli-plugins/" +install -D -m 0755 bin/docker-compose "%{buildroot}/usr/libexec/docker/cli-plugins/docker-compose" +install -d -m 0755 %{buildroot}%{_bindir} + + +%files +%doc README.md +%license LICENSE +%dir /usr/libexec/docker/ +%dir /usr/libexec/docker/cli-plugins/ +/usr/libexec/docker/cli-plugins/docker-compose + + +%changelog +* Wed Jul 31 2024 Sergey Cherevko - 2.26.1-1.inferit +- Adapted for MSVphere 9 build +- Rebuilt for MSVSphere 9.4