-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent: refactor talker.py - split to modules #30
base: master
Are you sure you want to change the base?
Conversation
WORKDIR /root/talker | ||
|
||
RUN echo {\"password\": null, \"port\": 6379, \"host\": \"redis\", \"host_id\": \"$TALKER_HOST_ID\"} > conf.json | ||
COPY talker.py talker-service install_agent.sh ./ | ||
COPY __init__.py agent.py config.py job.py talker.py utils.py install_agent.sh talker_agent/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant you copy the whole dir?
|
||
CMD ["python", "talker.py"] | ||
ENV PYTHONPATH=. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is destructive. you need to add the current dir by it's full path
curl -sfL https://github.com/weka-io/talker/raw/v1.8.1/talker_agent/talker.py > talker_agent/config.py | ||
curl -sfL https://github.com/weka-io/talker/raw/v1.8.1/talker_agent/talker.py > talker_agent/job.py | ||
curl -sfL https://github.com/weka-io/talker/raw/v1.8.1/talker_agent/talker.py > talker_agent/talker.py | ||
curl -sfL https://github.com/weka-io/talker/raw/v1.8.1/talker_agent/utils.py > talker_agent/utils.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is insane. look at downloading an archive with the full directory
@@ -1,10 +1,14 @@ | |||
#!/bin/sh | |||
|
|||
if [ "$DOWNLOAD_TALKER" = true ] ; then | |||
sudo mkdir -p /root/talker | |||
sudo mkdir -p /root/talker/talker_agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not keep it in /root/talker
?
No description provided.