From 0d5ab421588bbc8aca4c759e3bba9b5f9a337577 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Wed, 27 Jul 2016 15:09:59 -0500 Subject: [PATCH] moved docker image to docker hub --- Dockerfile | 6 +----- start-docker.sh | 9 +++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 213f238..befa229 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,4 @@ RUN cd /root \ EXPOSE 3000 3306 35729 WORKDIR /usr/app -CMD ["mysqld"] - -# ./start-docker.sh -# ./start-server.sh -# rails server -b 0.0.0.0 +CMD /bin/bash diff --git a/start-docker.sh b/start-docker.sh index 5e9740e..eddb7e4 100755 --- a/start-docker.sh +++ b/start-docker.sh @@ -1,11 +1,11 @@ #!/bin/bash -IMAGE=deb-rails-dev +IMAGE=markamoser/deb-mysql-rails CONTAINER=`basename ${PWD}` -if [ "$(docker images -q $IMAGE:latest 2> /dev/null)" == "" ]; then - docker build -t $IMAGE . -fi +# if [ "$(docker images -q $IMAGE:latest 2> /dev/null)" == "" ]; then +# docker build -t $IMAGE . +# fi STATUS=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null) @@ -19,3 +19,4 @@ if [ "$STATUS"=="false" ]; then fi docker attach $CONTAINER +