Skip to content

Installing TDS, ERDDAP on RHEL7 using Docker

drewstev edited this page Sep 30, 2016 · 6 revisions

On fresh Red Hat Enterprise Linux 7 VM

Followed instructions here to install Docker Service: https://docs.docker.com/engine/installation/linux/rhel/ and here https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7

$ sudo tee /etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF

sudo yum install docker-engine
sudo service docker start
sudo systemctl enable docker  #enable docker engine service on reboot
sudo usermod -aG docker rsignell   # give rsignell ability to run docker (need to logout, log back in)

docker run -d --name tds -p 80:8080 axiom/docker-thredds:5.0  # run generic tds

docker cp tds:/opt/tomcat/content/thredds/threddsConfig.xml /home/rsignell/tds  # copy over config file

docker rm -f tds  # remove generic container

docker run -d --name tds -v /home/rsignell/docker/tds:/opt/tomcat/content/thredds -v /home/rsignell/data:/home/rsignell/data -p 80:8080 axiom/docker-thredds:5.0

docker pull axiom/docker-thredds:5.0 #re-download for updates