Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

assafgi
Copy link
Collaborator

@assafgi assafgi commented Aug 30, 2019

No description provided.

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/
Copy link
Contributor

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=.
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants