Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
a mistake
  • Loading branch information
gaohuadong committed Jan 3, 2022
commit 56a69f8e325fef9ac4298420f44fd41460abad31
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RUN apt-get update
RUN apt-get install --assume-yes apt-utils

RUN apt-get install -y net-tools procps gcc make default-libmysqlclient-dev cron && \
pip3 install mysqlclient
pip3 install mysqlclient && \
apt-get --purge remove -y gcc make default-libmysqlclient-dev && \
pip3 install supervisor sqlalchemy && \
pip3 install numpy pandas && \
Expand Down
4 changes: 2 additions & 2 deletions startStock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ if [ $# == 1 ] ; then
-v ${PWD}/supervisor:/data/supervisor \
-v ${PWD}/notebooks:/data/notebooks \
-v ${PWD}/data/logs:/data/logs \
pythonstock/pythonstock:base-2022-01 \
pythonstock/pythonstock:2022-01 \
supervisord -n -c /data/supervisor/supervisord.conf
exit 1;
else
echo "############# run online ############# "
# /data/stock 是代码目录 -v /data/stock:/data/stock 是开发模式。
docker run -itd --link=mysqldb --name stock \
-p 8888:8888 -p 9999:9999 --restart=always \
pythonstock/pythonstock:base-2022-01
pythonstock/pythonstock:2022-01
exit 1;
fi