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

Running pychromeless locally on Docker #2

Closed
robroc opened this issue Apr 14, 2018 · 2 comments
Closed

Running pychromeless locally on Docker #2

robroc opened this issue Apr 14, 2018 · 2 comments

Comments

@robroc
Copy link

robroc commented Apr 14, 2018

Me again.

For those of us who are unfamiliar with Docker, can you please tell us how to test our app locally in it, or how to set up environment variables? I followed the Docker tutorial, but it's not clear.

For example I keep getting these errors:

When I run:
docker-compose run lambda

I get:
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the GetObject operation: The AWS Access Key Id you provided does not exist in our records.

Or when I run:
docker run --rm -v "$PWD":/var/task lambci/lambda:python3.6 lambda_function.lambda_handler

I get:
Unable to import module 'lambda_function': No module named 'selenium'

Thanks for any additional help you can spare.

@jairovadillo
Copy link
Owner

Hey! I've updated the README because it was WRONG (sorry). You just need to do:

make fetch-dependencies
make docker-run

Aaand you're good to go!

@robroc
Copy link
Author

robroc commented Apr 18, 2018

Thank you for this. Recently I did:

make fetch-dependencies
make docker-build
make docker-run

And it worked. Is the docker-build step unnecessary?

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

3 participants