0% found this document useful (0 votes)
270 views

Tutorial Install Geonode Vanilla

This document provides instructions for installing Docker and deploying a vanilla GeoNode installation using Docker on an Ubuntu host. It includes steps to: 1. Install Docker and docker-compose packages on the Ubuntu host. 2. Upgrade docker-compose to the latest version. 3. Test the Docker Compose instance by running a hello-world container. 4. Deploy a vanilla GeoNode by cloning the GeoNode source code, building and running the Docker images.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
270 views

Tutorial Install Geonode Vanilla

This document provides instructions for installing Docker and deploying a vanilla GeoNode installation using Docker on an Ubuntu host. It includes steps to: 1. Install Docker and docker-compose packages on the Ubuntu host. 2. Upgrade docker-compose to the latest version. 3. Test the Docker Compose instance by running a hello-world container. 4. Deploy a vanilla GeoNode by cloning the GeoNode source code, building and running the Docker images.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Tutorial Install Geonode Vanilla

Docker
In this section we are going to list the passages needed to:

1. Install Docker and docker-compose packages on a Ubuntu host


2. Deploy a vanilla GeoNode with Docker
a. Override the ENV variables to deploy on a public IP or domain
b. Access the django4geonode Docker image to update the code-base and/or
change internal settings
c. Access the geoserver4geonode Docker image to update the GeoServer version
3. Passages to completely get rid of old Docker images and volumes (prune the
environment completely)

1. Install the Docker and docker-compose packages on a Ubuntu


host Docker Setup (First time only)
# install OS level packages..
sudo apt update
sudo apt upgrade

sudo add-apt-repository universe


sudo apt-get update -y
sudo apt-get install -y git-core git-buildpackage debhelper devscripts python3.10-dev
python3.10-venv virtualenvwrapper
sudo apt-get install -y apt-transport-https ca-certificates curl lsb-release gnupg gnupg-agent
software-properties-common vim

# add docker repo and packages...


sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o
/etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg]
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee
/etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update -y


sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose
sudo apt autoremove --purge

# add your user to the docker group...


sudo usermod -aG docker ${USER}
su ${USER}

2. Upgrade docker-compose to the latest version


DESTINATION=$(which docker-compose)
sudo apt-get remove docker-compose
sudo rm $DESTINATION
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po
'"tag_name": "\K.*\d')
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-
$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION

3. Test Docker Compose Instance


docker run -it hello-world

4. Deploy a vanilla GeoNode with Docker


# Let's create the GeoNode core base folder and clone it
sudo mkdir -p /opt/geonode/
sudo usermod -a -G www-data geonode
sudo chown -Rf geonode:www-data /opt/geonode/
sudo chmod -Rf 775 /opt/geonode/

# Clone the GeoNode source code on /opt/geonode


cd /opt
git clone https://github.com/GeoNode/geonode.git -b 4.1.x geonode

cd /opt/geonode
docker-compose build --no-cache
docker-compose up -d

cd /opt/geonode
docker-compose logs -f django

You might also like