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

Include a Dockerfile #15

Open
bobbytables opened this issue Oct 5, 2015 · 3 comments
Open

Include a Dockerfile #15

bobbytables opened this issue Oct 5, 2015 · 3 comments

Comments

@bobbytables
Copy link

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?

@keeth
Copy link

keeth commented Oct 5, 2015

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

@bobbytables
Copy link
Author

I have a fork that ive made some changes that allow containerizing better.

@bobbytables
Copy link
Author

I've opened a PR for this #28

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

No branches or pull requests

2 participants