Add Docker support

This commit is contained in:
Michał Czeraszkiewicz
2016-05-21 11:08:14 +02:00
parent 9f56e4a582
commit 56471c2fe4
7 changed files with 116 additions and 5 deletions

15
docker/scripts/run-development Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Stop on any error
set -e
script_directory="$( cd "$( dirname "$0" )" && pwd )"
project_directory=$script_directory/../..
# Specify the Docker image name
image_name='purpleidea/mgmt:development'
# Run container in development mode
docker run --rm --name=mgm_development --user=mgmt \
-v $project_directory:/home/mgmt/mgmt \
-it $image_name bash