Merge pull request #11 from breandan/master

Added mount point and simplified Dockerfile usage
This commit is contained in:
breandan 2015-07-21 14:04:06 -04:00
commit 5e07cbd38e
2 changed files with 14 additions and 9 deletions

View File

@ -34,11 +34,10 @@ In order to build the documentation site, you will need:
**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 .`
* `docker run -it -p 4000:4000 intellij-sdk-docs /bin/bash -c 'cd intellij-sdk-docs && rake preview'`
* `docker build -t intellij-sdk-docs /intellij-sdk-docs`
* `docker run intellij-sdk-docs`
**OS X**

16
docker/Dockerfile Normal file → Executable file
View File

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