File: vagrant.sh

package info (click to toggle)
bcbio 1.2.9-4
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 36,792 kB
  • sloc: python: 45,766; sh: 209; makefile: 159; xml: 129
file content (16 lines) | stat: -rwxr-xr-x 529 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Vagrant shell provisioning script https://www.vagrantup.com/docs/provisioning/shell.html

set -e -x

/usr/bin/apt-get -qq update
/usr/bin/apt-get install -q -y build-essential docker.io python-setuptools
/usr/bin/apt-get -y autoremove
/usr/bin/apt-get clean

/bin/systemctl start docker.service
/usr/sbin/usermod -aG docker vagrant

NEW_PATH='${HOME}/local/share/bcbio/anaconda/bin:${HOME}/local/bin:${PATH}'
/bin/grep -qxF "PATH=${NEW_PATH}" ~vagrant/.profile || /bin/echo "PATH=${NEW_PATH}" >> ~vagrant/.profile