-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Pavel Busko <pavel.busko@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
- Loading branch information
1 parent
1301156
commit d79fb4d
Showing
1,313 changed files
with
206,756 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
set -e | ||
|
||
# create GOPATH | ||
mkdir -p ${BOSH_INSTALL_TARGET}/src | ||
mv * ${BOSH_INSTALL_TARGET}/src | ||
mv ${BOSH_INSTALL_TARGET}/src . | ||
|
||
DEST="$PWD/bin" | ||
mkdir -p ${DEST} | ||
|
||
source /var/vcap/packages/golang-*-linux/bosh/compile.env | ||
|
||
pushd src/code.cloudfoundry.org | ||
|
||
CGO_ENABLED=0 go build -o ${DEST}/ -ldflags "-s -w" -a -installsuffix static code.cloudfoundry.org/cnbapplifecycle/cmd/builder code.cloudfoundry.org/cnbapplifecycle/cmd/launcher | ||
|
||
popd | ||
|
||
ldd $DEST/builder && echo "builder must be statically linked" && false | ||
ldd $DEST/launcher && echo "launcher must be statically linked" && false | ||
|
||
cp /var/vcap/packages/diego-sshd/diego-sshd ${DEST}/diego-sshd | ||
cp /var/vcap/packages/healthcheck/healthcheck ${DEST}/healthcheck | ||
|
||
tar -czf ${BOSH_INSTALL_TARGET}/cnb_app_lifecycle.tgz \ | ||
-C ${DEST} \ | ||
builder launcher healthcheck diego-sshd |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.