Skip to content

Commit

Permalink
Dockerize our wiki example
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jun 4, 2015
1 parent ca70f7d commit 16d52a1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/web/wiki/.gitignore
@@ -0,0 +1 @@
wiki.db
6 changes: 6 additions & 0 deletions examples/web/wiki/Dockerfile
@@ -0,0 +1,6 @@
FROM crux/python:onbuild

EXPOSE 9000

ENTRYPOINT ["./wiki.py"]
CMD []
3 changes: 3 additions & 0 deletions examples/web/wiki/requirements.txt
@@ -0,0 +1,3 @@
circuits
pygments
creoleparser
22 changes: 22 additions & 0 deletions examples/web/wiki/setup.py
@@ -0,0 +1,22 @@
#!/usr/bin/env python

from setuptools import setup


def parse_requirements(filename):
with open(filename, "r") as f:
for line in f:
if line and line[0] != "#":
yield line.strip()


setup(
name="wiki",
version="dev",
description="circuits wiki demo",
scripts=(
"wiki.py",
),
install_requires=list(parse_requirements("requirements.txt")),
zip_safe=True
)

0 comments on commit 16d52a1

Please sign in to comment.