File: provision-docker

package info (click to toggle)
ruby-mongo 2.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,020 kB
  • sloc: ruby: 110,810; makefile: 5
file content (21 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# Provisions the machine on which this script is running with the
# required software to be able to build and run a Docker container with the
# driver's test suite.
#
# After this script runs for the first time, the user needs to log out and
# log back in to be able to issue Docker commands.
#
# This script may be run more than once, in which case it will try to attain
# the same final machine state as it would have attained on a fresh instance.

set -e

sudo env DEBIAN_FRONTEND=noninteractive \
  apt-get -y install docker.io ruby zsh
sudo gem install dotenv --no-document

user=`whoami`

sudo usermod -aG docker "$user"