Skip to content

Commit

Permalink
bundle artifacts in docker on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Sep 27, 2020
1 parent be03a79 commit 5482273
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands:
- attach_workspace:
at: ./repos
- run: ./repos/linux_scripts/build_kaleido <<parameters.arch>>
- run: python ./repos/kaleido/py/setup.py bundle_hash_artifacts
- run: ./repos/linux_scripts/bundle_artifacts <<parameters.arch>>
- store_artifacts:
path: ./repos/kaleido/kaleido_artifacts_linux_<<parameters.arch>>.zip
- persist_to_workspace:
Expand Down
3 changes: 1 addition & 2 deletions repos/kaleido/py/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from __future__ import unicode_literals
import setuptools
from __future__ import unicode_literals, print_function
import os
import shutil
from setuptools import setup, Command
Expand Down
9 changes: 9 additions & 0 deletions repos/linux_scripts/bundle_artifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "No architecture provided"
exit 1
fi
export KALEIDO_ARCH=$1

# Perform build using docker
docker run -it -v `pwd`/repos/:/repos jonmmease/chromium-builder:0.8 /repos/linux_scripts/bundle_artifacts_docker $KALEIDO_ARCH
8 changes: 8 additions & 0 deletions repos/linux_scripts/bundle_artifacts_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "No architecture provided"
exit 1
fi
export KALEIDO_ARCH=$1

python3 /repos/kaleido/py/setup.py bundle_hash_artifacts

0 comments on commit 5482273

Please sign in to comment.