forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created mule tasks for aptly, releases page and docker hub images (al…
- Loading branch information
btoll
authored
Oct 29, 2020
1 parent
450fd8c
commit 3ae2f78
Showing
20 changed files
with
609 additions
and
62 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 |
---|---|---|
|
@@ -63,3 +63,6 @@ assets | |
|
||
# test binaries | ||
*.test | ||
|
||
index.html | ||
|
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 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install git python3 python3-pip -y && \ | ||
pip3 install awscli boto3 | ||
|
||
WORKDIR /root | ||
|
||
CMD ["/bin/bash"] | ||
|
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 |
---|---|---|
|
@@ -67,3 +67,4 @@ jobs: | |
package-docker: | ||
tasks: | ||
- docker.Make.docker | ||
|
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,25 @@ | ||
## Manual deploy steps for deb packages | ||
|
||
It's **very** important that the docker container is run **before** the `release-page` **and** the `docker-hub` `mule` tasks in `package-deploy`. | ||
|
||
The docker container will do the following (see the `create_and_push` shell script): | ||
|
||
1. Copy the new `algorand` and `algorand-devtools` packages from the `algorand-staging` to `algorand-internal` buckets so the `packages/` directory in the container will be properly synced with the `algorand-internal` bucket. | ||
|
||
1. Sync `algorand-internal/packages` -> `packages/` in the container. | ||
|
||
1. Add the deb packages to the appropriate `aptly` repo. | ||
|
||
1. Create the snapshot (naming convention is `CHANNEL-VERSION`). | ||
|
||
1. Switch out the old snapshot in the `algorand-releases/deb` location for this new one. | ||
|
||
1. Sync `algorand-staging` -> `algorand-dev-deb-repo` | ||
|
||
When that is finished, it is safe to run the following commands (order doesn't matter): | ||
|
||
- `mule -f package-deploy releases-page` | ||
- `mule -f package-deploy docker-hub` | ||
|
||
> Note that the releases page is built from the latest release in the `algorand-dev-deb-repo` bucket, hence the need to have first run the docker container which performs that sync operation. | ||
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,30 @@ | ||
{ | ||
"rootDir": "/root/aptly", | ||
"downloadConcurrency": 4, | ||
"downloadSpeedLimit": 0, | ||
"architectures": [], | ||
"dependencyFollowSuggests": false, | ||
"dependencyFollowRecommends": false, | ||
"dependencyFollowAllVariants": false, | ||
"dependencyFollowSource": false, | ||
"dependencyVerboseResolve": false, | ||
"gpgDisableSign": false, | ||
"gpgDisableVerify": false, | ||
"gpgProvider": "gpg", | ||
"downloadSourcePackages": false, | ||
"skipLegacyPool": true, | ||
"ppaDistributorID": "ubuntu", | ||
"ppaCodename": "", | ||
"skipContentsPublishing": false, | ||
"FileSystemPublishEndpoints": {}, | ||
"S3PublishEndpoints": { | ||
"algorand-releases": { | ||
"region":"us-east-1", | ||
"bucket":"algorand-releases", | ||
"acl":"public-read", | ||
"prefix":"deb" | ||
} | ||
}, | ||
"SwiftPublishEndpoints": {} | ||
} | ||
|
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 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG AWS_ACCESS_KEY_ID | ||
ARG AWS_SECRET_ACCESS_KEY | ||
|
||
ENV DEBIAN_FRONTEND noninteractive \ | ||
AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \ | ||
AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | ||
|
||
RUN apt-get update && apt-get install aptly awscli binutils curl gnupg2 silversearcher-ag tree -y | ||
|
||
WORKDIR /root | ||
|
||
COPY . . | ||
|
||
RUN aws s3 sync s3://algorand-internal/packages packages && \ | ||
aptly repo create -distribution=stable -architectures=amd64 -component=main -comment=mainnet algorand && \ | ||
aptly repo create -distribution=beta -architectures=amd64 -component=main -comment=betanet algorand-beta && \ | ||
aptly repo create -distribution=indexer -architectures=amd64 -component=main -comment=indexer algorand-indexer && \ | ||
aptly repo create -distribution=indexer-beta -architectures=amd64 -component=main -comment=indexer-beta algorand-indexer-beta && \ | ||
aptly repo add algorand packages/deb/stable/*.deb && \ | ||
aptly repo add algorand-beta packages/deb/beta/*.deb && \ | ||
aptly repo add algorand-indexer packages/deb/indexer/stable/*.deb && \ | ||
aptly repo add algorand-indexer-beta packages/deb/indexer/beta/*.deb | ||
|
||
CMD ["/bin/bash"] | ||
|
Oops, something went wrong.