安装docker -可忽略
install OS level packages..
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 vimadd 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=(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}
安装docker compose 最新版,需要大于2.2
sudo curl -L https://github.com/docker/compose/releases/download/1.29.0/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose - 直接下载:https://github.com/docker/compose/releases/download/v2.15.0/docker-compose-linux-x86_64,否则版本不对
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
GEONode安装准备 - Let's create the GeoNode core base folder and clone it
sudo mkdir -p /opt/geonode/
sudo usermod -a -G www-data ggl
sudo chown -Rf ggl:www-data /opt/geonode/
sudo chmod -Rf 775 /opt/geonode/
docker-compose安装(预计20分钟)
cd /opt
git clone https://ghproxy.com/https://github.com/GeoNode/geonode.git -b 4.1.x geonode
cd /opt/geonode
docker-compose build --no-cache
docker-compose up -d