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

Add Containerfile to repo #9

Closed
emanuelb opened this issue Aug 11, 2020 · 1 comment
Closed

Add Containerfile to repo #9

emanuelb opened this issue Aug 11, 2020 · 1 comment

Comments

@emanuelb
Copy link

Example:

.dockerignore file content:

Containerfile
LICENSE
README.md
maps_api_scanner.py

Here what I use on latest fedora: (after git clone --depth 1 this repo)
Build by: podman build --rm -t gmapsapiscanner .
Run by: podman run --name gmapsapiscanner -ti --entrypoint /bin/sh --rm gmapsapiscanner then python3 maps_api_scanner_python3.py and enter the key.

Containerfile content:

FROM python:alpine

RUN set -ex; \
   apk update; \
   apk upgrade; \
   adduser -D appuser

USER appuser
WORKDIR /home/appuser/gmapsapiscanner/
COPY . /home/appuser/gmapsapiscanner/

RUN set -ex; \
    pip3 install requests

it will be possible to use it from command-line without enter container if api-key can be set by argument, issue #8 , then ContainerFile can have add at the bottom:

ENTRYPOINT ["python3", "maps_api_scanner_python3.py", "--apikey"]

and be run like:
podman run --name gmapsapiscanner --rm gmapsapiscanner API_KEY_HERE

@ozguralp
Copy link
Owner

Well, due to I am not using containers too much & not having too many requests for it from community, I decided to not developing/adding this feature. If you want to contribute, you are more than welcome to make a pull request. Meanwhile, I am closing the issue.

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