Mercurial > code > home > repos > href
changeset 29:890584020372
new container setup
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 Jul 2020 13:17:13 -0700 |
parents | 7c82ffbca5d0 |
children | e86642cf7393 |
files | .hgignore Dockerfile requirements.txt serv.n3 tasks.py |
diffstat | 4 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sun Jul 12 13:17:13 2020 -0700 @@ -0,0 +1,2 @@ +_darcs_old +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dockerfile Sun Jul 12 13:17:13 2020 -0700 @@ -0,0 +1,33 @@ +FROM bang5:5000/base_x86 + +WORKDIR /opt + +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata + +COPY requirements.txt ./ + +RUN pip3 install 'BeautifulSoup4' +RUN pip3 install 'CherryPy==3.2.2' +RUN pip3 install 'argparse==1.2.1' +RUN pip3 install 'bottle==0.11.6' +RUN pip3 install 'cssselect==0.7.1' +RUN pip3 install 'gunicorn==0.17.2' +RUN pip3 install 'http-parser==0.8.1' +RUN pip3 install 'pymongo==2.4.2' +RUN pip3 install 'pystache==0.5.3' +RUN pip3 install 'python-dateutil' +RUN pip3 install 'six' +RUN pip3 install 'pyjade==4.0.0' +RUN pip3 install 'lxml==4.5.2' +RUN pip3 install 'requests==2.24.0' + + +RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt +RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3' + +COPY *.py run ./ +COPY static static/ +COPY template template/ + + +CMD [ "./run" ]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/serv.n3 Sun Jul 12 13:17:13 2020 -0700 @@ -0,0 +1,18 @@ +@prefix : <http://bigasterisk.com/ns/serv#> . +@prefix auth: <http://bigasterisk.com/ns/serv/auth#> . +@prefix serv: <http://bigasterisk.com/services/> . + + +serv:href_image a :DockerImage; + :internalPort 10002; + :dockerFile "Dockerfile" +. + +serv:href a :Service; + :image serv:href_image; + :path "/href/"; + :openid auth:admin; + :serverHost "bang"; + :port 10002 +. +