-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base gcloud builder on google/cloud-sdk (#454)
- Loading branch information
Showing
6 changed files
with
36 additions
and
74 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 |
---|---|---|
@@ -1,30 +1,2 @@ | ||
FROM gcloud-slim | ||
|
||
RUN apt-get -y update && \ | ||
# JRE is required for cloud-datastore-emulator | ||
apt-get -y install default-jre && \ | ||
|
||
# Install all available components | ||
/builder/google-cloud-sdk/bin/gcloud -q components install \ | ||
alpha beta \ | ||
app-engine-go \ | ||
app-engine-java \ | ||
app-engine-php \ | ||
app-engine-python \ | ||
app-engine-python-extras \ | ||
bigtable \ | ||
cbt \ | ||
cloud-datastore-emulator \ | ||
cloud-build-local \ | ||
datalab \ | ||
docker-credential-gcr \ | ||
emulator-reverse-proxy \ | ||
kubectl \ | ||
pubsub-emulator \ | ||
&& \ | ||
|
||
/builder/google-cloud-sdk/bin/gcloud -q components update && \ | ||
/builder/google-cloud-sdk/bin/gcloud components list && \ | ||
|
||
# Clean up | ||
rm -rf /var/lib/apt/lists/* | ||
FROM google/cloud-sdk | ||
ENTRYPOINT ["gcloud"] |
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 |
---|---|---|
@@ -1,31 +1,2 @@ | ||
FROM launcher.gcr.io/google/ubuntu16_04 | ||
|
||
RUN apt-get -y update && \ | ||
apt-get -y install gcc python2.7 python-dev python-setuptools wget ca-certificates \ | ||
# These are necessary for add-apt-respository | ||
software-properties-common python-software-properties && \ | ||
|
||
# Install Git >2.0.1 | ||
add-apt-repository ppa:git-core/ppa && \ | ||
apt-get -y update && \ | ||
apt-get -y install git && \ | ||
|
||
# Setup Google Cloud SDK (latest) | ||
mkdir -p /builder && \ | ||
wget -qO- https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | tar zxv -C /builder && \ | ||
CLOUDSDK_PYTHON="python2.7" /builder/google-cloud-sdk/install.sh --usage-reporting=false \ | ||
--bash-completion=false \ | ||
--disable-installation-options && \ | ||
# install crcmod: https://cloud.google.com/storage/docs/gsutil/addlhelp/CRC32CandInstallingcrcmod | ||
easy_install -U pip && \ | ||
pip install -U crcmod && \ | ||
|
||
# Clean up | ||
apt-get -y remove gcc python-dev python-setuptools wget && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf ~/.config/gcloud | ||
|
||
ENV PATH=/builder/google-cloud-sdk/bin/:$PATH | ||
|
||
ENTRYPOINT ["/builder/google-cloud-sdk/bin/gcloud"] | ||
FROM google/cloud-sdk:slim | ||
ENTRYPOINT ["gcloud"] |
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