Commit 0cdc9c88 authored by Mikko Piuhola's avatar Mikko Piuhola

New box: opentrons-api-env

Simple Ubuntu box for opentrons development
parent d9c9a060
# opentrons-api-env
Simple VM for using the opentrons API (
Based on geerlingguy's Ubuntu 18.04 LTS Vagrant box.
## Prerequisites
- Install VirtualBox (>= 5.2.10)
- Install Vagrant (>= 2.0.0)
- Install vagrant-vbguest plugin: `vagrant plugin install vagrant-vbguest`
- Get an opentrons robot
## Usage
1. Clone this repository
2. Open a terminal into this (`opentrons-api-env/`) directory
3. Run:
vagrant up
vagrant ssh
4. Do Python stuff
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "geerlingguy/ubuntu1804"
config.vm.box_version = "= 1.0.1"
config.vm.provider "virtualbox" do |vb|
vb.cpus = 1
vb.memory = "1024"
config.vm.provision "shell", path: ""
#!/bin/bash -e
# Make Python 3.6 the default
echo 'alias python=python3.6' >> /home/vagrant/.bashrc
echo 'Installing pip...'
sudo apt-get update
sudo apt-get install --yes python-pip python3-setuptools
echo 'Installing pipenv for user "vagrant"...'
su --login vagrant <<-EOF
pip install --user pipenv
echo 'export PATH="${PATH}:/home/vagrant/.local/bin"' >> ~/.bashrc
echo 'Setting up opentrons environment...'
su --login vagrant <<-EOF
set -o errexit
git clone
cd opentrons/api
make install
cat <<-EOF >> /home/vagrant/.bashrc
cd ~/opentrons/api
pipenv shell
cat <<-EOF
To use the opentrons environment,
run: vagrant ssh
You can now run your Python scripts against OT-2.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment