Open kannankaruppiah opened 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.
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
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
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 foundAny help will be highly appreciated...and i am passing in my flink master URL here