mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
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:
parent
5d8cf85db3
commit
b3faaacfab
@ -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**
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user