-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving this from our closed-source version. This adds an option to build container images inside Kubernetes clusters, and by extension removes the need for Docker and Kubernetes running on developer machines. Use it by setting `buildMode: "cluster-docker"` in the `kubernetes` provider configuration.
- Loading branch information
Showing
56 changed files
with
1,078 additions
and
206 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
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 -e | ||
|
||
garden_service_root=$(cd `dirname $0` && cd .. && pwd) | ||
|
||
cd ${garden_service_root} | ||
|
||
args=( $@ ) | ||
version=${args[0]:-$(git rev-parse --short HEAD)} | ||
|
||
echo "Building version ${version}" | ||
|
||
npm run build | ||
|
||
docker build -t gardendev/garden:${version} . | ||
docker build -t gardendev/garden-gcloud:${version} --build-arg NAME=garden --build-arg VERSION=${version} -f gcloud.Dockerfile . | ||
|
||
echo "Pushing images" | ||
|
||
docker push gardendev/garden:${version} | ||
docker push gardendev/garden-gcloud:${version} |
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 @@ | ||
ARG NAME | ||
ARG VERSION | ||
FROM gardendev/${NAME:-garden}:${VERSION} | ||
|
||
RUN apk add --no-cache python \ | ||
&& mkdir -p /gcloud \ | ||
&& curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | tar xz -C /gcloud \ | ||
&& /gcloud/google-cloud-sdk/install.sh --quiet \ | ||
&& ln -s /gcloud/google-cloud-sdk/bin/gcloud /usr/local/bin/gcloud \ | ||
&& chmod +x /usr/local/bin/gcloud |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.