Skip to content

marcboissonneaultjda/Miniconda_gcloud_SDK_Dockerfile_based_on_python27

Repository files navigation


Setup Linux machine with ubuntu (same setup as on the docker image)

Download Ubuntu

Ubuntu download page: Download the ubuntu iso

Install Virtual Box

Virtual Box download page

  1. Create a new virtual machine
    • Type: linux
    • Version: Ubuntu
    • Memory: At least 1G
    • Create a Virtual Hard Drive
      • VDI (Virtual Box Disk Image)
      • Dynamically allocated
      • At Least 15GB of Size
  2. Start the machine
    • Startup disk: your ubuntu iso

Once installed and started, open a terminal and configure default size in Menu edit/profile

Install base programs

  • apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y bzip2 curl unzip docker.io && apt-get clean && rm -rf /var/lib/apt/lists/*

Download Sublime Text 3 & Install

From HERE Run as root if possible: sudo -s

Install Miniconda

Install Cloud SDK

  • cat < /etc/profile.d/google-cloud-sdk.sh

  • export CLOUDSDK_PYTHON_SITEPACKAGES=1

  • export PATH=$PATH:/opt/google-cloud-sdk/bin

  • export PYTHONPATH=/opt/google-cloud-sdk/platform/google_appengine/:$PYTHONPATH

  • EOF

  • source /etc/profile.d/google-cloud-sdk.sh OR Log out and login again to apply the environment variables

  • curl -o /tmp/google-cloud-sdk.zip https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && unzip /tmp/google-cloud-sdk.zip -d /opt && rm /tmp/google-cloud-sdk.zip && /opt/google-cloud-sdk/install.sh --usage-reporting false --bash-completion false --path-update false --additional-components pkg-python preview app


Command to build / push the docker image

Build the docker file

On a terminal:

  • sudo docker build -t dockerhub_username/docker_image_name:v1 "Dockerfilelocation"
    • Example: sudo docker build -t marcboissonneaultjda/jda_miniconda-gcloud-sdk:v1 .

once build the image id will be shown, keep a note of that id because we may need it later on

Push the docker image to DockerHub

  • sudo docker push dockerhub_username/docker_image_name:v1

Automated Build of the docker image

See Automated Build page

  • You need to link docker hub to your github account and follow the instructions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages