Add setup script - #31
Merged
Merged
Conversation
iandees
approved these changes
Oct 19, 2018
rmarianski
approved these changes
Oct 19, 2018
| mkdir -p "${TMPDIR}/src/tzops" | ||
| ln -sT "${DIR}/../go" "${TMPDIR}/src/tzops/go" | ||
| go get github.com/aws/aws-sdk-go | ||
| go get gopkg.in/yaml.v2 |
Member
There was a problem hiding this comment.
At some point we should probably rename the imports just to make it go getable to avoid having to list these dependencies.
Member
|
Please file followup issue and relate here.
…On Fri, Oct 19, 2018 at 10:32 Robert Marianski ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In utils/setup.sh
<#31 (comment)>:
> +
+export GOPATH="${TMPDIR}"
+export GOOS=linux
+export GOARCH=amd64
+export AWS_DEFAULT_REGION="${REGION}"
+
+title "Creating S3 buckets"
+for func in tile-assets rawr-tiles missing-bucket meta-tiles; do
+ aws s3 mb "s3://${PREFIX}-${func}-${REGION}" --region "${REGION}"
+done
+
+title "Installing Go dependencies"
+mkdir -p "${TMPDIR}/src/tzops"
+ln -sT "${DIR}/../go" "${TMPDIR}/src/tzops/go"
+go get github.com/aws/aws-sdk-go
+go get gopkg.in/yaml.v2
At some point we should probably rename the imports just to make it go getable
to avoid having to list these dependencies.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0EOzjYQ4Un6M7CHPpWtFqN0PNPRm8zks5umeJugaJpZM4XwPOq>
.
|
Member
Author
|
Thanks! I found out why the logs weren't appearing (they were going to to the "wrong" region for this run), hopefully fixed in 7b0506a. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a script which does a lot of the work of setting up buckets, static assets and a Codebuild policy.
For some reason, I'm not getting CloudWatch logs out of this new setup - but otherwise it seems to be working fine.