remove docker files

This commit is contained in:
Adam Brown 2015-04-17 23:17:12 -04:00
parent 73f0b5f4b3
commit 9dc35f2079
5 changed files with 11 additions and 52 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ client/bower_components
dist
server/config/local.env.js
wdiff-1.2.2
data

View File

@ -9,7 +9,6 @@ Build the container with `docker build -t 'adamarthurryan/wdiff-markdown'`.
Run the script `prepare.sh` from this folder.
To launch the application in development mode, run `launch-devel.sh`.
To launch the application in production mode, run `launch-prod.sh`.
To launch the application in development mode, run `../launch-devel.sh`.
To launch the application in production mode, run `../launch-prod.sh`.

View File

@ -1,37 +0,0 @@
#! /bin/bash
# Start a data container and a mongodb instance
echo
# test if the data-db container has been created
if docker inspect -f {{.Name}} data-db
then
echo "* data-db exists"
else
echo "* creating data-db"
# The data container has a volume at /data/db, is named 'data' and is based on mongo
docker create -v /data/db --name data-db mongo echo "Data container - database"
fi
echo
# test if the mongo db server has been created
if docker inspect -f {{.Name}} mongodb
then
# make sure the server is running
if docker inspect -f {{.State.Running}} mongodb
then
echo "* mongodb exists and is running"
else
echo "* starting mongodb"
docker start mongodb
fi
else
echo "* creating new mongodb server"
# Start a mongo db server as a daemon
# The server will use the data-db container as a volume
docker run -p 27017 --name=mongodb --volumes-from=data-db -d mongo
fi

View File

@ -16,6 +16,4 @@ if docker inspect -f {{.Name}} data-docker-home > /dev/null
fi
docker/start-mongodb
docker run -it --rm --link mongodb:mongodb --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 9000:9000 -p 35729:35729 adamarthurryan/mean grunt serve
docker run -it --rm --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 9000:9000 -p 35729:35729 adamarthurryan/mean grunt serve

View File

@ -16,6 +16,4 @@ if docker inspect -f {{.Name}} data-docker-home > /dev/null
fi
docker/mongodb-start
docker run -it --rm --link mongodb:mongodb -e "PORT=8080" --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 80:8080 adamarthurryan/mean grunt serve:dist
docker run -it --rm -e "PORT=8080" --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 80:8080 adamarthurryan/mean grunt serve:dist