| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -529,6 +529,14 @@ RUN pip install --upgrade dask && \ | |||
| 529 | 529 | mkdir -p /etc/ipython/ && echo "c = get_config(); c.IPKernelApp.matplotlib = 'inline'" > /etc/ipython/ipython_config.py && \ | |
| 530 | 530 | /tmp/clean-layer.sh | |
| 531 | 531 | ||
| 532 | + # gcloud SDK https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu | ||
| 533 | + RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" \ | ||
| 534 | + | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
| 535 | + curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \ | ||
| 536 | + apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \ | ||
| 537 | + apt-get update -y && apt-get install google-cloud-sdk -y && \ | ||
| 538 | + /tmp/clean-layer.sh | ||
| 539 | + | ||
| 532 | 540 | # Add BigQuery client proxy settings | |
| 533 | 541 | ENV PYTHONUSERBASE "/root/.local" | |
| 534 | 542 | ADD patches/kaggle_gcp.py /root/.local/lib/python3.6/site-packages/kaggle_gcp.py | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + import os | ||
| 2 | + import subprocess | ||
| 3 | + import unittest | ||
| 4 | + | ||
| 5 | + class TestGcloud(unittest.TestCase): | ||
| 6 | + def test_version(self): | ||
| 7 | + result = subprocess.run([ | ||
| 8 | + 'gcloud', | ||
| 9 | + '--version', | ||
| 10 | + ], | ||
| 11 | + stdout=subprocess.PIPE, | ||
| 12 | + ) | ||
| 13 | + | ||
| 14 | + self.assertTrue(result.returncode == 0) | ||
| 15 | + self.assertTrue(b'Google Cloud SDK' in result.stdout) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments