diff --git a/alumnos/sharop/data-docker/.ipynb_checkpoints/Version-checkpoint.ipynb b/alumnos/sharop/data-docker/.ipynb_checkpoints/Version-checkpoint.ipynb new file mode 100644 index 0000000..286dcb3 --- /dev/null +++ b/alumnos/sharop/data-docker/.ipynb_checkpoints/Version-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/alumnos/sharop/data-docker/Version.ipynb b/alumnos/sharop/data-docker/Version.ipynb new file mode 100644 index 0000000..22cc4d1 --- /dev/null +++ b/alumnos/sharop/data-docker/Version.ipynb @@ -0,0 +1,55 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2.7.8 (default, Oct 20 2014, 15:05:19) \n", + "[GCC 4.9.1]\n" + ] + } + ], + "source": [ + "import sys\n", + "print (sys.version)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.8" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/alumnos/sharop/runc.sh b/alumnos/sharop/runc.sh new file mode 100755 index 0000000..15c48d3 --- /dev/null +++ b/alumnos/sharop/runc.sh @@ -0,0 +1,24 @@ +#!/bin/sh +#by Sharop +#TODO: Falta agregar condiciones y un poco de inteligencia para que verifique la maquina +space=docker ps -a | grep -i docker-ds | grep Up | cut -d' ' -f 1 + +case "$1" in + run) + docker run -d -p 8787:8787 -p 8888:8888 -v $(pwd)/data-docker:/home/itam/proyectos nanounanue/docker-ds + ;; + stop) + docker stop $(echo $(docker ps -a | grep -i docker-ds | grep Up | cut -d' ' -f 1 )) + ;; + kill) + docker rm $(echo $(docker ps -a | grep -i docker-ds | cut -d' ' -f 1 )) + ;; + start) + docker start $(echo $(docker ps -a | grep -i docker-ds | cut -d' ' -f 1 )) + ;; + *) + echo $"Uso $0 {run|stop|kill|start}" + exit 1 + +esac +