artifactory-prometheus-exporter icon indicating copy to clipboard operation
artifactory-prometheus-exporter copied to clipboard

Docker unable to start python main.py

Open YakirShriker opened this issue 4 years ago • 3 comments

yakirs-mac:artifactory-prometheus-exporter yakirs$ docker run -p 9600:9600 -e ARTIFACTORY_URL=https://tlv-artifactory.int.**** -e ARTIFACTORY_USER=*** -e ARTIFACTORY_PASSWORD=*** petrjurasek/artifactory-prometheus-exporter
Unable to find image 'petrjurasek/artifactory-prometheus-exporter:latest' locally
latest: Pulling from petrjurasek/artifactory-prometheus-exporter
aad63a933944: Already exists
f229563217f5: Pull complete
53c0f3533ce2: Pull complete
e4502ebadb5f: Pull complete
0945eb8e1427: Pull complete
627044aa3fd7: Pull complete
d248fc36c59e: Pull complete
a36a558e09ff: Pull complete
Digest: sha256:f5002d806464726a97e6051fe0871002e92d4d028ae793ab16f468e827c521b0
Status: Downloaded newer image for petrjurasek/artifactory-prometheus-exporter:latest
usage: main.py [-h] [--app-port APP_PORT] [--app-interval APP_INTERVAL]
               [--app-log-level APP_LOG_LEVEL] --artifactory-url
               ARTIFACTORY_URL --artifactory-user ARTIFACTORY_USER
               --artifactory-password ARTIFACTORY_PASSWORD

If an arg is specified in more than one place, then commandline values
override environment variables which override defaults.

optional arguments:
  -h, --help            show this help message and exit
  --app-port APP_PORT   [env var: APP_PORT]
  --app-interval APP_INTERVAL
                        [env var: APP_INTERVAL]
  --app-log-level APP_LOG_LEVEL
                        [env var: APP_LOG_LEVEL]
  --artifactory-url ARTIFACTORY_URL
                        [env var: ARTIFACTORY_URL]
  --artifactory-user ARTIFACTORY_USER
                        [env var: ARTIFACTORY_USER]
  --artifactory-password ARTIFACTORY_PASSWORD
                        [env var: ARTIFACTORY_PASSWORD]
yakirs-mac:artifactory-prometheus-exporter yakirs$

YakirShriker avatar Jun 07 '20 14:06 YakirShriker

changed docker file

  • ENTRYPOINT ["python", "main.py"]
  • CMD ["-h"]

+CMD ["python", "main.py"]

works

YakirShriker avatar Jun 07 '20 15:06 YakirShriker

thanks for reporting https://github.com/petrjurasek/artifactory-prometheus-exporter/pull/11

petrjurasek avatar Jun 10 '20 20:06 petrjurasek

fixed in petrjurasek/artifactory-prometheus-exporter:0.0.8

petrjurasek avatar Jun 10 '20 20:06 petrjurasek