-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1202 from aanand/jenkins-script
WIP: Jenkins script
- Loading branch information
Showing
6 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -ex | ||
mkdir -p `pwd`/dist | ||
chmod 777 `pwd`/dist | ||
docker build -t docker-compose . | ||
docker run -u user -v `pwd`/dist:/code/dist --rm --entrypoint pyinstaller docker-compose -F bin/docker-compose | ||
mv dist/docker-compose dist/docker-compose-Linux-x86_64 | ||
docker run -u user -v `pwd`/dist:/code/dist --rm --entrypoint dist/docker-compose-Linux-x86_64 docker-compose --version | ||
|
||
TAG="docker-compose" | ||
docker build -t "$TAG" . | ||
docker run \ | ||
--rm \ | ||
--user=user \ | ||
--volume="$(pwd):/code" \ | ||
--entrypoint="script/build-linux-inner" \ | ||
"$TAG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
mkdir -p `pwd`/dist | ||
chmod 777 `pwd`/dist | ||
|
||
pyinstaller -F bin/docker-compose | ||
mv dist/docker-compose dist/docker-compose-Linux-x86_64 | ||
dist/docker-compose-Linux-x86_64 --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# This should be run inside a container built from the Dockerfile | ||
# at the root of the repo: | ||
# | ||
# $ TAG="docker-compose:$(git rev-parse --short HEAD)" | ||
# $ docker build -t "$TAG" . | ||
# $ docker run --rm --volume="/var/run/docker.sock:/var/run/docker.sock" --volume="$(pwd)/.git:/code/.git" -e "TAG=$TAG" --entrypoint="script/ci" "$TAG" | ||
|
||
set -e | ||
|
||
>&2 echo "Validating DCO" | ||
script/validate-dco | ||
|
||
export DOCKER_VERSIONS=all | ||
. script/test-versions | ||
|
||
>&2 echo "Building Linux binary" | ||
su -c script/build-linux-inner user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters