mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
Add Docker support
This commit is contained in:
parent
c7f213bc13
commit
5d8cf85db3
@ -32,6 +32,14 @@ In order to build the documentation site, you will need:
|
||||
* Python 2 - the [Pygments](https://github.com/tmm1/pygments.rb) gem uses Python for syntax highlighting.
|
||||
* `gem install bundler` - the site uses [Bundler](http://bundler.io) to manage gem dependencies within the repo, rather than globally installing to the local operating system.
|
||||
|
||||
**Docker**
|
||||
|
||||
To install this site on Docker, simply 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'`
|
||||
|
||||
**OS X**
|
||||
|
||||
OS X comes with Ruby and Python already installed. The only steps required are:
|
||||
|
28
docker/Dockerfile
Normal file
28
docker/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
RUN \
|
||||
apt-get install --yes software-properties-common && \
|
||||
apt-get install --yes python && \
|
||||
add-apt-repository --yes ppa:brightbox/ruby-ng && \
|
||||
add-apt-repository --yes ppa:chris-lea/node.js && \
|
||||
apt-get update && \
|
||||
apt-get install --yes vim curl git
|
||||
|
||||
RUN \
|
||||
apt-get install --yes ruby2.1 ruby2.1-dev bundler && \
|
||||
apt-get install --yes libghc-zlib-dev && \
|
||||
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 && \
|
||||
cd intellij-sdk-docs && \
|
||||
git submodule init && \
|
||||
git submodule update
|
||||
|
||||
RUN \
|
||||
cd intellij-sdk-docs && \
|
||||
rake bootstrap
|
||||
|
||||
EXPOSE 4000
|
Loading…
x
Reference in New Issue
Block a user