-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build legacy swarm with any netplugin branch (#281)
* Build legacy swarm with any netplugin branch During make build, user can specify: * NETPLUGIN_BRANCH - the branch to compile instead of latest release * NETPLUGIN_OWNER (if not contiv) - the username for the netplugin fork When the branch is specified, only the full installer is built. A lot of the environment / config for the build has moved to the Makefile and enviornment variables so it's easy to find and set, and they are largely prefixed with CONTIV_ Some decomposition of the build has happened (ansible and netplugin split out into separate scripts and targets), getting us part way to build.sh being only an assembling of assets gathered by other scripts and dropped in artifact_staging directory. Preparing the release tarball is done in a random temp directory that is cleaned up automatically. build.sh no longer takes a bunch of CLI arguments, instead relies on enviornment variables, as this script is intended to be run by the Makefile. The legacy swarm mode prefers the full installer vs. the over the internet installer. Created a reusable installer unpacker that later can be used by other install scripts. Drive-by: - update the netplugin versions to 1.1.5 * review feedback and adj for netplugin merge
- Loading branch information
Showing
7 changed files
with
124 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ cluster/.vagrant | |
cluster/export | ||
cluster/*.log | ||
release | ||
artifact_staging/ | ||
|
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
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,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
ANSIBLE_REPO_DIR=${CONTIV_ARTIFACT_STAGING}/ansible | ||
|
||
rm -rf $ANSIBLE_REPO_DIR | ||
|
||
mkdir -p $ANSIBLE_REPO_DIR $CONTIV_ARTIFACT_STAGING | ||
|
||
echo downloading ${CONTIV_ANSIBLE_OWNER}/ansible commit: $CONTIV_ANSIBLE_COMMIT | ||
curl --fail -sL https://api.github.com/repos/${CONTIV_ANSIBLE_OWNER}/ansible/tarball/$CONTIV_ANSIBLE_COMMIT \ | ||
| tar --strip-components 1 -C $ANSIBLE_REPO_DIR -z -x |
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
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