ing-bank / flink-deployer

A tool that help automate deployment to an Apache Flink cluster
MIT License
151 stars 50 forks source link

Docker run of the image not working #44

Open kannankaruppiah opened 3 years ago

kannankaruppiah commented 3 years ago

I pulled the image from docker hub and when i try to run passing the environment variable this is the error i am getting:

docker run nielsdenissen/flink-deployer --env FLINK_BASE_URL=http://localhost:8081 2021/07/25 20:31:32 FLINK_BASE_URL environment variable not found

Any help will be highly appreciated...and i am passing in my flink master URL here

ajaegle commented 3 years ago

You need to pass the env parameter to the docker command before naming the image, otherwise it is passed as argument to the container itself.

kannankaruppiah commented 3 years ago

thanks @ajaegle just tried passing the way you mentioned but still the container is in exited state:

docker run --env FLINK_BASE_URL=http://localhost:8081 nielsdenissen/flink-deployer:latest Logs from the container: NAME: Flink Deployer - A new cli application

USAGE: cli [global options] command [command options] [arguments...]

VERSION: 1.4.0

DESCRIPTION: A Go command-line utility to facilitate deployments to Apache Flink

COMMANDS: list, l list the jobs running on the job manager deploy, d deploy the JAR to the job manager update, u Update a running job by creating a savepoint, stopping the job and deploying the new version terminate, t Terminate a running job help, h Shows a list of commands or help for one command

kannankaruppiah commented 3 years ago

Also I am trying to run the docker-compose run deployer deploy cli command using my file-name for the jar...it says no such file...tried all possibilities