Skip to content

A docker image that runs a yum mirror of the repos necessary for HDP

License

Notifications You must be signed in to change notification settings

rmelick/hdp-yum-mirror-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hdp-yum-mirror-docker

A docker image that runs a yum mirror of the repos necessary for HDP

Deploy the image with a command like the following

docker run --name local-hdp-mirror -p 80:80 -d -e FQDN=hdpmirror.example.com -v /tmp/hdpmirrors:/usr/local/apache2/htdocs/mirrors rmelick/hdp-yum-mirror-docker:latest

This will store all the downloaded mirrors files into /tmp/hdpmirrors so that they are easily accessible after restarting the yum container

Once the container is running, you can download distributions using the isntall-new-mirrors command. The three arguments are HDP version, HDP-Utils version, and Ambari version

./install-new-mirrors.sh 2.3.6.0-3566 1.1.0.20 2.2.1.1

After deploying the image, add the repository to your local yums by using

yum-config-manager --add-repo http://hdpmirror.example.com/hdp-clones.repo

You can check that the mirror has been added correctly by running

yum repolist

About

A docker image that runs a yum mirror of the repos necessary for HDP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages