-
Notifications
You must be signed in to change notification settings - Fork 496
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 #15153 from SimonRichardson/content-addressable-deps
[JUJU-2627] Enable content addressable downloads
- Loading branch information
Showing
9 changed files
with
92 additions
and
38 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
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
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,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source "$(dirname $0)/../env.sh" | ||
|
||
# s3 puts here are without an ACL. | ||
# The bucket uses policies that allow GetObject to anyone, | ||
# and PutObject to select Juju team accounts. | ||
|
||
echo "Pushing ${S3_ARCHIVE_PATH} to s3" | ||
aws s3 cp ${ARCHIVE_PATH} ${S3_ARCHIVE_PATH} | ||
|
||
SUM=$(sha256sum ${FILE} | awk '{print $1}') | ||
echo "Pushing ${SUM}.tar.bz2 to s3" | ||
aws s3 cp ${S3_ARCHIVE_PATH} ${S3_BUCKET}/${SUM}.tar.bz2 | ||
|
||
# This is the old way and is deprecated. | ||
echo "Pushing latest-dqlite-deps-${BUILD_ARCH}.tar.bz2 to s3" | ||
aws s3 cp ${S3_ARCHIVE_PATH} ${S3_BUCKET}/latest-dqlite-deps-${BUILD_ARCH}.tar.bz2 |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
MACHINE=${MACHINE:-0} | ||
|
||
juju exec -m controller --machine=${MACHINE} 'sudo which rlwrap &>/dev/null || sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install rlwrap socat' |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
MACHINE=${MACHINE:-0} | ||
|
||
juju ssh -m controller ${MACHINE} 'sudo rlwrap -H /root/.dqlite_repl.history socat - /var/lib/juju/dqlite/juju.sock' |