Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Apr 25, 2016
1 parent 36e6220 commit e1b48b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 39 deletions.
6 changes: 5 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Docker

Below the Docker image recipes.
Below the generic Docker image recipes. To make a standard UBuntu system ready for using
Docker, run the bootstrap.sh script as a user with sudo-root rights (not root itself!).

Each of the generic docker images is used by the ETL and services. Via volume mappings
dynamic and configuration data is kept on the host.

## Shorthands

Expand Down
6 changes: 5 additions & 1 deletion docker/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ sudo service docker start
# test
# sudo docker run hello-world

# Emacs
# Also Docker Compose
sudo apt-get install -y python-pip
sudo pip install docker-compose

# Utils like Emacs and Postgres client to connect to PG DB
sudo apt-get install -y emacs24-nox
sudo apt-get install -y postgresql-client-9.3

Expand Down
42 changes: 5 additions & 37 deletions docs/platform/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,47 +263,15 @@ Install Docker
This installation is for both the local Vagrant environment or on Fiware Ubuntu VM.
See https://docs.docker.com/engine/installation/linux/ubuntulinux/.

Steps. ::
Steps are all done by executing the script https://github.com/Geonovum/smartemission/blob/master/docker/bootstrap.sh :

$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates # usually already installed

# Add key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

# Add to repo by putting this line in /etc/apt/sources.list.d/docker.list
deb https://apt.dockerproject.org/repo ubuntu-trusty main

$ sudo apt-get update

# check we get from right repo
$ apt-cache policy docker-engine

# The linux-image-extra package allows you use the aufs storage driver.
$ sudo apt-get install linux-image-extra-$(uname -r)

# If you are installing on Ubuntu 14.04 or 12.04, apparmor is required.
# You can install it using (usually already installed)
$ sudo apt-get install apparmor

# install docker engine
$ sudo apt-get install docker-engine

# Start the docker daemon.
$ sudo service docker start

# test
$ sudo docker run hello-world
$ sudo docker run -it ubuntu bash

Install Docker-compose, for later combining Docker-images, see https://docs.docker.com/compose/install.
Easiest via Python ``pip``. ::
.. literalinclude:: ../../docker/bootstrap.sh
:language: bash

$ sudo apt-get install python-pip
$ sudo pip install docker-compose
Includes also the install for Docker-compose, for later combining Docker-images, see https://docs.docker.com/compose/install.

See also CLI utils for ``docker-compose``: https://docs.docker.com/v1.5/compose/cli/
Now our system is ready to roll out Docker images.
Now our system is ready to roll out Docker images!

Handy Commands
~~~~~~~~~~~~~~
Expand Down

0 comments on commit e1b48b8

Please sign in to comment.