Add docs builder
This commit is contained in:
parent
288eb34e0a
commit
48a45a0073
|
@ -0,0 +1,9 @@
|
||||||
|
FROM ubuntu:trusty
|
||||||
|
|
||||||
|
COPY start /start
|
||||||
|
|
||||||
|
RUN apt-get update ; apt-get install -y python3 python3-dev python3-pip python3-yaml make wget python3-sphinx python3-setuptools unzip libmysqlclient-dev ; cd /tmp ; wget https://github.com/jgarzik/python-bitcoinrpc/archive/master.zip ; unzip master.zip ; cd python-bitcoinrpc-master/ ; python3 setup.py install ; cd /tmp ; wget https://github.com/dpedu/MySQL-for-Python-3/archive/master.zip -O mysqldb.zip ; unzip mysqldb.zip ; cd MySQL-for-Python-3-master/ ; python3 setup.py install ; chmod +x /start ; mkdir /tmp/docs
|
||||||
|
|
||||||
|
VOLUME /tmp/docs
|
||||||
|
|
||||||
|
CMD ["/start"]
|
|
@ -0,0 +1,9 @@
|
||||||
|
Docs Builder
|
||||||
|
============
|
||||||
|
|
||||||
|
A docker image for building pyircbot's docs.
|
||||||
|
|
||||||
|
**Usage:**
|
||||||
|
|
||||||
|
* Create image: `cd docs/builder ; docker build -t pybdocbuilder .
|
||||||
|
* Build docs: `docker run --rm -v /local/path/to/doc/output/:/tmp/docs/ pybdocbuilder /start`
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
wget http://gitlab.xmopx.net/dave/pyircbot3/repository/archive.tar?ref=master -O pyircbot.tar
|
||||||
|
tar xvf pyircbot.tar
|
||||||
|
cd pyircbot3.git/docs/
|
||||||
|
make html
|
||||||
|
cp -r _build/html/* /tmp/docs/
|
Loading…
Reference in New Issue