Unified · Split
| @@ -0,0 +1,17 @@ | |||
| 1 | |||
| 2 | FROM ruby:2.2.2 | ||
| 3 | MAINTAINER Conor Heine <conor.heine@gmail.com> | ||
| 4 | |||
| 5 | RUN apt-get update | ||
| 6 | RUN apt-get -y install git nodejs | ||
| 7 | RUN git clone https://github.com/Thibaut/devdocs.git /devdocs | ||
| 8 | RUN gem install bundler | ||
| 9 | |||
| 10 | WORKDIR /devdocs | ||
| 11 | |||
| 12 | RUN bundle install --system | ||
| 13 | RUN thor docs:download --all | ||
| 14 | |||
| 15 | EXPOSE 9292 | ||
| 16 | CMD rackup -o 0.0.0.0 | ||
| 17 | |||
| @@ -37,6 +37,17 @@ The `thor docs:download` command is used to download/update individual documenta · 36 unmodified lines | |||
| 37 | 37 | ||
| 38 | **Note:** there is currently no update mechanism other than `git pull origin master` to update the code and `thor docs:download` to download the latest version of the docs. To stay informed about new releases, be sure to [watch](https://github.com/Thibaut/devdocs/subscription) this repository and/or subscribe to the [newsletter](http://eepurl.com/HnLUz). | 38 | **Note:** there is currently no update mechanism other than `git pull origin master` to update the code and `thor docs:download` to download the latest version of the docs. To stay informed about new releases, be sure to [watch](https://github.com/Thibaut/devdocs/subscription) this repository and/or subscribe to the [newsletter](http://eepurl.com/HnLUz). |
| 39 | 39 | ||
| 40 | Alternatively, DevDocs may be started as a Docker container: | ||
| 41 | |||
| 42 | ``` | ||
| 43 | # First, build the image | ||
| 44 | git clone https://github.com/Thibaut/devdocs.git && cd devdocs | ||
| 45 | docker build -t thibaut/devdocs . | ||
| 46 | |||
| 47 | # Finally, start a DevDocs container (access http://localhost:9292) | ||
| 48 | docker run --name devdocs -d -p 9292:9292 thibaut/devdocs | ||
| 49 | ``` | ||
| 50 | |||
| 40 | ## Vision | 51 | ## Vision |
| 41 | 52 | ||
| 42 | DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable. | 53 | DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable. |