Skip to content

Demo Setup

Joongi Kim edited this page Feb 20, 2018 · 14 revisions

This meta-repository provides a docker-compose configuration to fire up a single-node Backend.AI clustering running on your PC.

All you have to do is:

  • Clone the repository
  • docker-compose up -d
  • Pull some kernel images to try out

To pull kernel images, just do it on your host Docker daemon like:

$ docker pull lablup/kernel-python:latest
$ docker pull lablup/kernel-python-tensorflow:latest
$ docker pull lablup/kernel-c:latest

By default the cluster already has metadata/alias information for all publicly available Backend.AI kernels, so you don't have to manually register the pulled kernel information to the cluster unless you are going to try a custom-built kernel.

To access this local cluster, set the following configurations to your favoriate Backend.AI client:

$ export BACKEND_ENDPOINT="http://localhost:8081"
$ export BACKEND_ACCESS_KEY="AKIAIOSFODNN7EXAMPLE"
$ export BACKEND_SECRET_KEY="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"

With our official Python client, you can do:

$ backend.ai run python -c "print('hello world')"
✔ Session 9c737d84724173354fa10445d0b35fe0 is ready.
hello world
✔ Finished. (exit code = 0)
Clone this wiki locally