Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 933 Bytes

installation.md

File metadata and controls

40 lines (30 loc) · 933 Bytes

Installation

prerequisites

these examples have been tested on Ubuntu linux 18.04. You also need at least:

  • docker (for the test database)
  • java runtime version >= 11

Install baremaps

# download the latest version
#wget https://github.com/baremaps/baremaps/releases/latest/download/baremaps.zip

# use a fixed version so the examples are still working in the future
wget https://github.com/baremaps/baremaps/releases/download/v0.5.3/baremaps.zip
unzip baremaps.zip && rm baremaps.zip
export PATH=$PATH:`pwd`/baremaps/bin

select java version and use openjdk-11

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar

create DB

docker run \
  --name baremaps-db-test \
  --publish 5432:5432 \
  -e POSTGRES_DB=baremaps \
  -e POSTGRES_USER=baremaps \
  -e POSTGRES_PASSWORD=baremaps \
  -d baremaps/postgis:latest