Skip to content

Commit

Permalink
Dockerfile: Add docker image support
Browse files Browse the repository at this point in the history
Usage:

1. Build the docker image

$ docker build -t tinylab/linux-0.11-lab ./

2. Start the Lab environment server

$ CONTAINER_ID=$(docker run -d -p 6080:6080 dorowu/ubuntu-desktop-lxde-vnc)

3. Get the login password

$ docker logs $CONTAINER_ID | sed -n 1p
User: ubuntu Pass: ubuntu

4. Login

  http://localhost:6080/vnc.html

Or

  $ docker exec 8222763de ifconfig eth0 | grep "inet addr:"
  inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0

  http://172.17.0.1:6080/vnc.html

Signed-off-by: Wu Zhangjin <[email protected]>
  • Loading branch information
lzufalcon committed May 2, 2015
1 parent dfbd154 commit 9ea3a73
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM dorowu/ubuntu-desktop-lxde-vnc
MAINTAINER Falcon [email protected]

RUN sed -i -e "s/archive.ubuntu.com/mirrors.163.com/g" /etc/apt/sources.list

RUN apt-get -y update

RUN apt-get install -y vim cscope exuberant-ctags build-essential qemu-system-x86

RUN apt-get install -y bochs vgabios bochsbios bochs-doc bochs-x libltdl7 bochs-sdl bochs-term

RUN apt-get install -y graphviz cflow

RUN apt-get install -y git ca-certificates

ADD . /linux-0.11-lab
WORKDIR /linux-0.11-lab

EXPOSE 6080
EXPOSE 5900
EXPOSE 22

ENTRYPOINT ["/startup.sh"]

0 comments on commit 9ea3a73

Please sign in to comment.