flink-deployer icon indicating copy to clipboard operation
flink-deployer copied to clipboard

Docker run of the image not working

Open kannankaruppiah opened this issue 3 years ago • 3 comments

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

kannankaruppiah avatar Jul 25 '21 20:07 kannankaruppiah

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.

ajaegle avatar Jul 25 '21 21:07 ajaegle

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 avatar Jul 25 '21 21:07 kannankaruppiah

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

kannankaruppiah avatar Jul 25 '21 22:07 kannankaruppiah