Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge 140a9b0 into 3fb9167
Browse files Browse the repository at this point in the history
  • Loading branch information
yeclimeric committed Aug 31, 2018
2 parents 3fb9167 + 140a9b0 commit df7adf4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM python:2.7
FROM python:3.5
MAINTAINER binux <roy@binux.me>

RUN apt-get update

# install phantomjs
RUN mkdir -p /opt/phantomjs \
&& cd /opt/phantomjs \
Expand All @@ -11,7 +13,7 @@ RUN mkdir -p /opt/phantomjs \


# install requirements
RUN pip install --egg 'https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.5.zip#md5=ce4a24cb1746c1c8f6189a97087f21c1'
RUN pip install 'https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.5.zip#md5=ce4a24cb1746c1c8f6189a97087f21c1'
COPY requirements.txt /opt/pyspider/requirements.txt
RUN pip install -r /opt/pyspider/requirements.txt

Expand All @@ -23,6 +25,6 @@ WORKDIR /opt/pyspider
RUN pip install -e .[all]

VOLUME ["/opt/pyspider"]
ENTRYPOINT ["pyspider"]
ENTRYPOINT ["pyspider","-c","/opt/pyspider/config.json"]

EXPOSE 5000 23333 24444 25555
12 changes: 12 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"taskdb_demo": "mysql+taskdb://user:password@host:port/taskdb",
"projectdb_demo": "mysql+projectdb://user:password@host:port/projectdb",
"resultdb_demo": "mysql+resultdb://user:password@host:port/resultdb",
"message_queue_demo": "redis://host:port/0",
"webui_demo": {
"port": 5000,
"username": "admin",
"password": "admin",
"need-auth": true
}
}

0 comments on commit df7adf4

Please sign in to comment.