Skip to content

Commit

Permalink
add docker into vm
Browse files Browse the repository at this point in the history
  • Loading branch information
BananaWanted authored and BananaWanted committed Feb 5, 2017
1 parent f3f6c8f commit f5c4622
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu

ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_PACKAGES="man git vim curl wget iputils-ping zsh make bzip2"
ARG INSTALL_PACKAGES="lsb man git vim curl wget zsh make bzip2 libnet-ifconfig-wrapper-perl mtr linux-image-extra-4.8.0-35-generic linux-image-extra-virtual apt-transport-https ca-certificates software-properties-common"
ARG TERM=xterm-256color
VOLUME /shared
WORKDIR /root
Expand All @@ -14,6 +14,13 @@ RUN PACKAGES="man git vim curl wget iputils-ping zsh" && \
apt-get install -y --no-install-recommends apt-utils && \
apt-get install -y $INSTALL_PACKAGES && \
apt-get upgrade -y && \
curl -fsSL https://yum.dockerproject.org/gpg | apt-key add - && \
add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main" && \
apt-get update && \
apt-get -y install docker-engine && \
(sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" || exit 0) && \
dircolors -b ~/.dircolors >> ~/.zshrc

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
This is an ubuntu virtual machine enviroment build on docker.

Execute `run.sh` to start an VM session.

## What's inside

- basic ubuntu environment with apt package manager and kernel 4.9.4
- oh my zsh
- docker engine
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

IMAGE_NAME="docker-vm"
CONTAINER_NAME="docker-vm"
Expand Down Expand Up @@ -35,4 +35,4 @@ else
echo "not support yet"
fi

clear_images
clear_images

0 comments on commit f5c4622

Please sign in to comment.