You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fwiw i just tried to do this, unfortunately this project doesn't lend itself to super straightforward containerization, it reads and writes a couple different kinds of files to local disk in the current working directory, so some directory mapping would be needed, and maybe the ability to specify where to write files. it can be done, but I was not able to get it going satisfactorily in the minutes I had available.. here's a dockerfile that successfully starts the app tho..
FROM ubuntu:15.04
RUN apt-get -y update
RUN apt-get install -y python-pip
RUN pip install requests==2.7.0
ADD . /srv/app/
ENV SLACK_USER_TOKEN_STRING "your-user-token"
ENV SLACK_URL_TOKEN_STRING "your-slackbot-token"
WORKDIR /srv/app
CMD ["/usr/bin/python", "/srv/app/slackbotExercise.py"]
override those two env vars when you run the image
It would be awesome to be able to pull this down as a docker image and just run it like that. Any possibility of that happening?
The text was updated successfully, but these errors were encountered: