Created
March 24, 2014 14:34
-
-
Save dongri/9741255 to your computer and use it in GitHub Desktop.
Docker で Hack ref: http://qiita.com/dongriab/items/6ce43a6701dbd87a7ef6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim Dockerfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y python-software-properties | |
RUN apt-get install -y wget | |
RUN add-apt-repository ppa:mapnik/boost | |
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - | |
RUN echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list | |
RUN apt-get update | |
RUN apt-get install -y hhvm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t hack . | |
..... | |
$ docker images | |
$ docker run -i -t hack bash | |
root@c5b48b4e3988:/# vi helloworld.hh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?hh | |
echo "Hello World\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?hh | |
echo "Hello World\n"; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@c5b48b4e3988:/# hhvm helloworld.hh | |
Hello World | |
root@c5b48b4e3988:/# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?hh | |
echo "Hello World\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment