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

Docker run of the image not working #44

Open
kannankaruppiah opened this issue Jul 25, 2021 · 3 comments
Open

Docker run of the image not working #44

kannankaruppiah opened this issue Jul 25, 2021 · 3 comments

Comments

@kannankaruppiah
Copy link

kannankaruppiah commented Jul 25, 2021

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
Copy link

ajaegle commented Jul 25, 2021

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
Copy link
Author

kannankaruppiah commented Jul 25, 2021

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
Copy link
Author

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

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