Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Build it as a docker image #23

Open
zhenyulin opened this issue Feb 9, 2017 · 8 comments
Open

Build it as a docker image #23

zhenyulin opened this issue Feb 9, 2017 · 8 comments

Comments

@zhenyulin
Copy link

zhenyulin commented Feb 9, 2017

This will help shorten the setup process.

Also currently I'm getting some errors during dependency installation as following

/usr/bin/ld: cannot find -lz

collect2: error: ld returned 1 exit status

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
@zhenyulin
Copy link
Author

the GCC version I'm using is gcc (Debian 4.9.2-10) 4.9.2

@zhenyulin
Copy link
Author

OK, the build issue resolved when I use Python3. Still would be great to package it as a docker image.

@petschni
Copy link

@zhenyulin were you able to create a working docker image?

@kylelee715
Copy link

@zhenyulin I'm running into the same issue on the dependencies, could you share further what you did to get it working?

@zhenyulin
Copy link
Author

@kylelee715 I fixed my issue running installation with Python3, hth

@dustMason
Copy link

@zhenyulin please submit your dockerfile in a PR!

@zhenyulin
Copy link
Author

Let me have a look at creating a docker image for this later, will post it here when done.

@dustMason
Copy link

dustMason commented Feb 14, 2017

I'm not a very experienced pythonista, but I think this is written for python 2.x, not python 3. This one-liner Dockerfile successfully builds and runs:

FROM python:2-onbuild

Just put that line into a Dockerfile in the same dir, then build it with docker build . -t trump2cash. Then you can run any of the scripts like so: docker run trump2cash python benchmark.py.

Note that you will need to supply all the env vars somehow. Docker compose and a .env file or command line args would both work.

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

No branches or pull requests

4 participants