Added mount point and simplified Dockerfile usage

* Added VOLUME sharing and default WORKDIR to Docker
* Simplified Docker installation commands
* Adjusted git coordinates to use HTTPS
This commit is contained in:
breandan 2015-07-21 13:39:42 -04:00
parent 5d8cf85db3
commit b3faaacfab
2 changed files with 14 additions and 10 deletions

View File

@ -34,11 +34,10 @@ In order to build the documentation site, you will need:
**Docker** **Docker**
To install this site on Docker, simply execute the following commands. To build and run this site on Docker, execute the following commands:
* `cd docker` * `docker build -t intellij-sdk-docs /intellij-sdk-docs`
* `docker build -t intellij-sdk-docs .` * `docker run intellij-sdk-docs`
* `docker run -it -p 4000:4000 intellij-sdk-docs /bin/bash -c 'cd intellij-sdk-docs && rake preview'`
**OS X** **OS X**

View File

@ -14,15 +14,20 @@ RUN \
apt-get install --yes nodejs apt-get install --yes nodejs
RUN \ RUN \
gem install bundler && \ gem install bundler
# git clone --depth 1 http://github.com/jetbrains/intellij-sdk-docs && \
git clone --depth 1 http://github.com/breandan/intellij-sdk-docs && \ RUN \
git clone --depth 1 https://github.com/jetbrains/intellij-sdk-docs.git /intellij-sdk-docs && \
cd intellij-sdk-docs && \ cd intellij-sdk-docs && \
git submodule init && \ git submodule init && \
git submodule update git submodule update
RUN \ RUN cd intellij-sdk-docs && rake bootstrap
cd intellij-sdk-docs && \
rake bootstrap VOLUME /intellij-sdk-docs
WORKDIR /intellij-sdk-docs
EXPOSE 4000 EXPOSE 4000
CMD rake preview