Reputation: 8744
I have been following this blog post, and after pulling the Docker image, shell functions are available. Here are the functions that get installed. What I don't understand is how do they get installed onto my shell in the first place? They aren't included in the Dockerfile as far I can tell
Upvotes: 0
Views: 85
Reputation: 8806
The shell functions aren't added by the Docker container. The command
curl -Lo .amb j.mp/docker-ambari && . .amb
downloads a script from http://j.mp/docker-ambari to a temporary file .amb
and then executes it.
The j.mp link expands to https://raw.githubusercontent.com/sequenceiq/docker-ambari/master/ambari-functions so this is how the shell commands are installed.
Upvotes: 2