Skip to content

Instantly share code, notes, and snippets.

@MattJermyWright
Last active April 18, 2016 04:28
Show Gist options
  • Save MattJermyWright/6802d036d9659e0cb382995d2993d234 to your computer and use it in GitHub Desktop.
Save MattJermyWright/6802d036d9659e0cb382995d2993d234 to your computer and use it in GitHub Desktop.
Docker: Common Docker Commands and Utilities
FROM agilemeasure/ubuntu-dev:latest
RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
RUN echo "export PATH=\"/root/.pyenv/bin:\$PATH\"" >> /root/.bashrc
RUN echo "eval \"\$(pyenv init -)\"" >> /root/.bashrc
RUN echo "eval \"\$(pyenv virtualenv-init -)\"" >> /root/.bashrc
RUN /root/.pyenv/bin/pyenv install 3.5.1
RUN /root/.pyenv/bin/pyenv install 2.7.11
RUN cd /root && /root/.pyenv/bin/pyenv local 2.7.11
# RUN . ~/.bashrc
# RUN pyenv update && pyenv install 3.5.1 && pyenv local 3.5.1
FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install curl git libssl-dev libsqlite3-dev sqlite3 bzip2 libbz2-dev
RUN apt-get -y install libreadline6 libreadline6-dev build-essential
#!/bin/bash
docker-machine rm -f default
docker-machine create --driver vmwarefusion default
#!/bin/bash
docker-machine restart default
#docker-machine start default
docker-machine regenerate-certs default
eval "$(docker-machine env default)"
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment