moved docker image to docker hub
This commit is contained in:
parent
7a32057825
commit
0d5ab42158
@ -36,8 +36,4 @@ RUN cd /root \
|
|||||||
|
|
||||||
EXPOSE 3000 3306 35729
|
EXPOSE 3000 3306 35729
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
CMD ["mysqld"]
|
CMD /bin/bash
|
||||||
|
|
||||||
# ./start-docker.sh
|
|
||||||
# ./start-server.sh
|
|
||||||
# rails server -b 0.0.0.0
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
IMAGE=deb-rails-dev
|
IMAGE=markamoser/deb-mysql-rails
|
||||||
CONTAINER=`basename ${PWD}`
|
CONTAINER=`basename ${PWD}`
|
||||||
|
|
||||||
if [ "$(docker images -q $IMAGE:latest 2> /dev/null)" == "" ]; then
|
# if [ "$(docker images -q $IMAGE:latest 2> /dev/null)" == "" ]; then
|
||||||
docker build -t $IMAGE .
|
# docker build -t $IMAGE .
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
STATUS=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
|
STATUS=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
|
||||||
|
|
||||||
@ -19,3 +19,4 @@ if [ "$STATUS"=="false" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
docker attach $CONTAINER
|
docker attach $CONTAINER
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user