Skip to content

Commit

Permalink
Added mount point and simplified Dockerfile usage
Browse files Browse the repository at this point in the history
* Added VOLUME sharing and default WORKDIR to Docker
* Simplified Docker installation commands
* Adjusted git coordinates to use HTTPS
  • Loading branch information
breandan committed Jul 21, 2015
1 parent 5d8cf85 commit b3faaac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
17 changes: 11 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ RUN \
apt-get install --yes nodejs

RUN \
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 && \
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

0 comments on commit b3faaac

Please sign in to comment.