mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Build OSX binary as a directory
OSX Catalina otherwise do scan the temporary executable files created by the single-file packaging. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
5478c966f1
commit
e13a7213f1
@ -30,8 +30,8 @@ jobs:
|
|||||||
name: build script
|
name: build script
|
||||||
command: ./script/build/osx
|
command: ./script/build/osx
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: dist/docker-compose-Darwin-x86_64
|
path: dist/docker-compose-Darwin-x86_64.tgz
|
||||||
destination: docker-compose-Darwin-x86_64
|
destination: docker-compose-Darwin-x86_64.tgz
|
||||||
- deploy:
|
- deploy:
|
||||||
name: Deploy binary to bintray
|
name: Deploy binary to bintray
|
||||||
command: |
|
command: |
|
||||||
|
108
docker-compose_darwin.spec
Normal file
108
docker-compose_darwin.spec
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
block_cipher = None
|
||||||
|
|
||||||
|
a = Analysis(['bin/docker-compose'],
|
||||||
|
pathex=['.'],
|
||||||
|
hiddenimports=[],
|
||||||
|
hookspath=[],
|
||||||
|
runtime_hooks=[],
|
||||||
|
cipher=block_cipher)
|
||||||
|
|
||||||
|
pyz = PYZ(a.pure, a.zipped_data,
|
||||||
|
cipher=block_cipher)
|
||||||
|
|
||||||
|
exe = EXE(pyz,
|
||||||
|
a.scripts,
|
||||||
|
exclude_binaries=True,
|
||||||
|
name='docker-compose',
|
||||||
|
debug=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
console=True,
|
||||||
|
bootloader_ignore_signals=True)
|
||||||
|
coll = COLLECT(exe,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
[
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v1.json',
|
||||||
|
'compose/config/config_schema_v1.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v2.0.json',
|
||||||
|
'compose/config/config_schema_v2.0.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v2.1.json',
|
||||||
|
'compose/config/config_schema_v2.1.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v2.2.json',
|
||||||
|
'compose/config/config_schema_v2.2.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v2.3.json',
|
||||||
|
'compose/config/config_schema_v2.3.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v2.4.json',
|
||||||
|
'compose/config/config_schema_v2.4.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.0.json',
|
||||||
|
'compose/config/config_schema_v3.0.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.1.json',
|
||||||
|
'compose/config/config_schema_v3.1.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.2.json',
|
||||||
|
'compose/config/config_schema_v3.2.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.3.json',
|
||||||
|
'compose/config/config_schema_v3.3.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.4.json',
|
||||||
|
'compose/config/config_schema_v3.4.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.5.json',
|
||||||
|
'compose/config/config_schema_v3.5.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.6.json',
|
||||||
|
'compose/config/config_schema_v3.6.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/config/config_schema_v3.7.json',
|
||||||
|
'compose/config/config_schema_v3.7.json',
|
||||||
|
'DATA'
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'compose/GITSHA',
|
||||||
|
'compose/GITSHA',
|
||||||
|
'DATA'
|
||||||
|
)
|
||||||
|
],
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
name='docker-compose-Darwin-x86_64')
|
@ -11,6 +11,12 @@ venv/bin/pip install -r requirements-build.txt
|
|||||||
venv/bin/pip install --no-deps .
|
venv/bin/pip install --no-deps .
|
||||||
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
||||||
echo "${DOCKER_COMPOSE_GITSHA}" > compose/GITSHA
|
echo "${DOCKER_COMPOSE_GITSHA}" > compose/GITSHA
|
||||||
|
|
||||||
venv/bin/pyinstaller docker-compose.spec
|
venv/bin/pyinstaller docker-compose.spec
|
||||||
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
||||||
dist/docker-compose-Darwin-x86_64 version
|
dist/docker-compose-Darwin-x86_64 version
|
||||||
|
|
||||||
|
# Also build as a folder, required on osx Catalina
|
||||||
|
venv/bin/pyinstaller docker-compose_darwin.spec
|
||||||
|
dist/docker-compose-Darwin-x86_64/docker-compose version
|
||||||
|
cd dist/docker-compose-Darwin-x86_64/ && tar zcvf ../docker-compose-Darwin-x86_64.tgz .
|
||||||
|
@ -55,6 +55,7 @@ class BinaryDownloader(requests.Session):
|
|||||||
|
|
||||||
def download_all(self, version):
|
def download_all(self, version):
|
||||||
files = {
|
files = {
|
||||||
|
'docker-compose-Darwin-x86_64.tgz': None,
|
||||||
'docker-compose-Darwin-x86_64': None,
|
'docker-compose-Darwin-x86_64': None,
|
||||||
'docker-compose-Linux-x86_64': None,
|
'docker-compose-Linux-x86_64': None,
|
||||||
'docker-compose-Windows-x86_64.exe': None,
|
'docker-compose-Windows-x86_64.exe': None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user