forked from TerriaJS/TerriaMap
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Giovanni Lughi edited this page Sep 11, 2025
·
16 revisions
rer3d-map runs on Linux and Windows systems.
Following instruction are for CentOS 7 64bit systems and mast be runned as root (or superuser).
Hardware system requirements:
- 4 CPU
- 8 GB RAM
- 100 GB fast storage (ie SSD)
Terrain model data path is /data/tilesets/terrain/ (this path can be a link to the real location of data); catalog configuration path is /data/3d_config/ (this path can be a link to the real location of files).
Software system requirements:
- C and C++ compliler
- Git
- CMake
- NodeJS 10
- Gulp
- PM2
- Docker
- GDAL (optional, allows vector data conversion)
To install C/C++ compilers:
yum install -y gcc gcc-c++
To install Git:
yum install -y git
To install CMake:
yum install -y cmake
To install NodeJS 10:
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
yum clean all
yum install -y nodejs-10.23.1
To install Gulp:
npm install -g gulp
To install PM2:
npm install -g pm2
pm2 startup centos
su -c "chmod +x /etc/init.d/pm2-init.sh; chkconfig --add pm2-init.sh"
To install Docker (only if you have to host terrain model server):
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
yum update
yum install -y docker-engine
systemctl enable docker
service docker start
docker pull geodata/cesium-terrain-server
docker run --restart=always -p 8090:8000 -v /data/tilesets/terrain:/data/tilesets/terrain geodata/cesium-terrain-server &
To install GDAL:
yum install -y epel-release
yum clean all
yum install -y gdal
Some ports must be opened to expose rer3d-map web service:
firewall-cmd --permanent --add-port=3001/tcp
firewall-cmd --permanent --add-port=8090/tcp
npm install -g rer3d-map
cd $(npm root -g)/rer3d-map
npm install
npm start
pm2 save
Eventually update custom files (ie devserverconfig.json or wwwroot/config.json).