Skip to content

Conversation

@assafgi
Copy link
Collaborator

@assafgi assafgi commented Aug 30, 2019

No description provided.


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/

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?

RUN chmod +x talker_agent/install_agent.sh && talker_agent/install_agent.sh

CMD ["python", "talker.py"]
ENV PYTHONPATH=.

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

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


if [ "$DOWNLOAD_TALKER" = true ] ; then
sudo mkdir -p /root/talker
sudo mkdir -p /root/talker/talker_agent

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.

3 participants