Skip to content

Commit

Permalink
start building dev env setup automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ianic committed Sep 19, 2021
1 parent 37bb374 commit 89d8632
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
GIT_ROOT=$(git rev-parse --show-toplevel)
PARENT_DIR=$(cd "$GIT_ROOT/.."; pwd)

ASSETS_DIR=$PARENT_DIR/mantil/internal/backend/assets
ASSETS_DIR=$GIT_DIR/internal/backend/assets

tf_module() {
zip -j $1.zip $PARENT_DIR/terraform-aws-modules/$1/*.tf
Expand Down
2 changes: 2 additions & 0 deletions scripts/Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
brew 'go'
brew 'git'
120 changes: 120 additions & 0 deletions scripts/Brewfile.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"entries": {
"brew": {
"go": {
"version": "1.17.1",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:d0108e9df0041587d852d63e5811e4b0a4ae498309cf7f9dd95463ddaa581d48",
"sha256": "d0108e9df0041587d852d63e5811e4b0a4ae498309cf7f9dd95463ddaa581d48"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:d1db2f29f84397225afccd674eef9b6c9e5a591a9372aab195b5c463d8ad6421",
"sha256": "d1db2f29f84397225afccd674eef9b6c9e5a591a9372aab195b5c463d8ad6421"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:15f1890939c34f3eeb841c09c6b74c23c43450337d50a3f0963493a3a861b7f9",
"sha256": "15f1890939c34f3eeb841c09c6b74c23c43450337d50a3f0963493a3a861b7f9"
},
"mojave": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:0299a79c3c05259256f5b4f10e532a3b2057423a93024f87ac99a174ec2e9d9f",
"sha256": "0299a79c3c05259256f5b4f10e532a3b2057423a93024f87ac99a174ec2e9d9f"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:65e57b46322ebb9957754293cc66012579d93a7795b286bd2f267758f8006d7b",
"sha256": "65e57b46322ebb9957754293cc66012579d93a7795b286bd2f267758f8006d7b"
}
}
}
},
"git": {
"version": "2.33.0",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/git/blobs/sha256:06e9cc3e274380b2494451ed2e3c6acf1e091facdf2ce02da57921fbc6a3115a",
"sha256": "06e9cc3e274380b2494451ed2e3c6acf1e091facdf2ce02da57921fbc6a3115a"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/git/blobs/sha256:1b89ec39f7a4b865b3c671f9b2495ec85992595112b74a5dc3ac78beae33ff0d",
"sha256": "1b89ec39f7a4b865b3c671f9b2495ec85992595112b74a5dc3ac78beae33ff0d"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/git/blobs/sha256:4aaced15f34f02a7a965f9cee42b78ef471034e4d9cf3bbbe8bf2ab8f4f72678",
"sha256": "4aaced15f34f02a7a965f9cee42b78ef471034e4d9cf3bbbe8bf2ab8f4f72678"
},
"mojave": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/git/blobs/sha256:5e85e4d8c9aaa398420993cb9c2561db79d3a71a12b79b8631ee0de5b0d86c67",
"sha256": "5e85e4d8c9aaa398420993cb9c2561db79d3a71a12b79b8631ee0de5b0d86c67"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/git/blobs/sha256:06340f727c9e234bbe7fb940307c7ec2545b8186ed1bfbb9c20cf9763cb2d22c",
"sha256": "06340f727c9e234bbe7fb940307c7ec2545b8186ed1bfbb9c20cf9763cb2d22c"
}
}
}
},
"go-bindata": {
"version": "3.22.0_1",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/go-bindata/blobs/sha256:a01ea5516d7864ae98529fc766cbefc5ebdbca00331f534fc43b084a214fc967",
"sha256": "a01ea5516d7864ae98529fc766cbefc5ebdbca00331f534fc43b084a214fc967"
},
"big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/go-bindata/blobs/sha256:189c89dc1cc88cc5da16f0d9d9bcf21cc8e13ff7623db34e59c8bca73a1ead34",
"sha256": "189c89dc1cc88cc5da16f0d9d9bcf21cc8e13ff7623db34e59c8bca73a1ead34"
},
"catalina": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/go-bindata/blobs/sha256:43ea329d2cf2f21b1f0829d0e651755cdc89c313729304219376796a0332bd55",
"sha256": "43ea329d2cf2f21b1f0829d0e651755cdc89c313729304219376796a0332bd55"
},
"mojave": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/go-bindata/blobs/sha256:5f8643d57a4de7d2925dd66b0949dfd634fdba6313f85d171ec34ebc69ededbf",
"sha256": "5f8643d57a4de7d2925dd66b0949dfd634fdba6313f85d171ec34ebc69ededbf"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/go-bindata/blobs/sha256:bdd58e06e26c6a0d83d17f29b81cc54dd1177be42d00c303fc77c309ba791416",
"sha256": "bdd58e06e26c6a0d83d17f29b81cc54dd1177be42d00c303fc77c309ba791416"
}
}
}
}
}
},
"system": {
"macos": {
"big_sur": {
"HOMEBREW_VERSION": "3.2.12",
"HOMEBREW_PREFIX": "/usr/local",
"Homebrew/homebrew-core": "eecc23af979ecb88604050c101d3c21be173a77b",
"CLT": "12.5.0.22.9",
"Xcode": "12.5.1",
"macOS": "11.6"
}
}
}
}
15 changes: 15 additions & 0 deletions scripts/setup-dev-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail

# homebrew packages
root=$(git rev-parse --show-toplevel)
cd $root/scripts
brew bundle

# go-bindata
go install github.com/go-bindata/go-bindata/go-bindata@latest
which go-bindata >> /dev/null || (
which $GOPATH/bin/go-bindata >>/dev/null && echo "go-bindata from $GOPATH/bin/go-bindata is not in PATH!" && exit 1
) || (
which $HOME/go/bin/go-bindata >>/dev/null && echo "go-bindata from $HOME/go/go-bindata is not in PATH!" && exit 1
)

0 comments on commit 89d8632

Please sign in to comment.