-
Notifications
You must be signed in to change notification settings - Fork 0
Environment Setup
Bart Middag edited this page May 16, 2016
·
3 revisions
A VM has also been created with the (not up-to-date) code on it. The username of this VM is: amma
, and the password is: bda
. To make the VM up-to-date and to run Datatonic's Datalab execute following commands:
# Pull Git repo, and authenticate with Google
cd ~/amma-bda/datalab/
git pull
gcloud auth login
# "propane-bearing-124123" can be changed to your project-id
gcloud config set project propane-bearing-124123
gcloud config set compute/zone us-central1-b
sudo ln -s ~/amma-bda/datalab /usr/share/datalab
# Deploy localy (+ build sources)
./deploy-local.sh --build
To run locally, the deployment steps are the same as the original Datalab project. These are the commands that should be executed:
# Linux
# Use https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
# Node.js
mkdir -p ~/tools/node
wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz -O node.tar.gz
tar xzf node.tar.gz -C ~/tools/node --strip-components=1
rm node.tar.gz
# add the following line to ~/.bashrc
export PATH=~/tools/node/bin:$PATH
# install typescript
sudo npm install -g typescript
# Install gcloud - [more info](https://cloud.google.com/sdk/)
curl https://sdk.cloud.google.com | bash
# Setup gcloud (once usually suffices, unless you need to change projects)
gcloud auth login
gcloud config set project <your cloud project>
gcloud config set compute/zone <zone name - make sure to choose US-based zone, eg. us-central1-a>
# install docker
# Use this guide: https://docs.docker.com/linux/
# checkout out repository
sudo ln -s <repository_directory>/datalab /usr/share/datalab
# Deploy localy (+ build sources)
cd <repository_directory>/datalab
./deploy-local.sh --build
Project Advanced Multimedia Applications: Datatonic and Google Cloud Datalab