A fair point, however.... I don't like java/kotlin, so I didn't want to try to work on the other one...
-
Vendan
- Posts: 10
- Joined: Sun Jan 02, 2011 8:56 pm
Re: Auto Mapping Implementation #2
-
iamahh
- Posts: 1806
- Joined: Sat Dec 12, 2015 8:23 pm
Re: Auto Mapping Implementation #2
is Docker installer on windows really 900MB?
-
Creadth
- Posts: 7
- Joined: Mon Jan 07, 2013 7:28 pm
Re: Auto Mapping Implementation #2
I would agree if the first implementation had docker image built already. It was a deal maker for me. Many ppl have infrastructure set up so hosting a dockerized app is as simple as it is to add a few lines of code, not even speaking of general docker features you gain.
-
Undefined
- Posts: 322
- Joined: Tue May 18, 2010 12:22 pm
- Location: United Kingdom
Re: Auto Mapping Implementation #2
I have been increasingly blown away by just how good this mapping system is it's made sharing maps a complete non-issue this world.
-
kmarad
- Posts: 150
- Joined: Mon Jan 06, 2020 7:46 pm
Re: Auto Mapping Implementation #2
Great stuff, very easy to deploy with docker.
I had a small issue, using a subdomain and https (let's encrypt certbot), ended up using IP:port which fixed everything.
This tool is amazing ! can't wait for v4 !
I had a small issue, using a subdomain and https (let's encrypt certbot), ended up using IP:port which fixed everything.
This tool is amazing ! can't wait for v4 !
-
JTB
- Posts: 41
- Joined: Fri Mar 06, 2020 2:10 pm
Re: Auto Mapping Implementation #2
I'm first time using docker, and kinda know how to reverse-proxy with nginx, so i set it up pretty easily, very good job with container and service itself, as i can see for now.
But i have one big problem and i ask you, please help. I am using Amber client, i set up docker container and open web interface, log in with my first user with all priviledges, set my IP as alias aka prefix in admin portal, so it looks like
When i paste this ip/client/token string to Mapping settings of Amber client to "Mapper serverl URL" box and reload client - nothing happens on service's Map, totally noting. It's still black.
What could possibly go in wrong direction? I do not have domain name and use just ip, port is different becouse web server is alive on 80 port. (as i could understand go code - 8080 is hardcoded, but anyway it makes no difference becouse of proxying).
Tried to paste adress with and without "http://", /srv/hnh-map/grids.db exists and it's weight is 64kb which i assume is not OK.
I run docker like it is said in github's .md file
But i have one big problem and i ask you, please help. I am using Amber client, i set up docker container and open web interface, log in with my first user with all priviledges, set my IP as alias aka prefix in admin portal, so it looks like
Code: Select all
http://1.4.8.8:322/client/server_generated_tokenBLHALblahAShdhcvnjsfdgsdfg9875154What could possibly go in wrong direction? I do not have domain name and use just ip, port is different becouse web server is alive on 80 port. (as i could understand go code - 8080 is hardcoded, but anyway it makes no difference becouse of proxying).
Tried to paste adress with and without "http://", /srv/hnh-map/grids.db exists and it's weight is 64kb which i assume is not OK.
I run docker like it is said in github's .md file
Code: Select all
docker run -v /srv/hnh-map:/map -p 322:8080 andyleap/hnh-auto-mapperAs fearless in death as he was in life
-
Vendan
- Posts: 10
- Joined: Sun Jan 02, 2011 8:56 pm
Re: Auto Mapping Implementation #2
https://github.com/andyleap/hnh-map/blo ... ain.go#L42 you can passJTB wrote:as i could understand go code - 8080 is hardcoded, but anyway it makes no difference becouse of proxying
Code: Select all
-port 322Code: Select all
HNHMAP_PORTIf you don't specify `:v-3` you'll pull latest, which is currently the experimental v4 branch, and current clients do not know how to talk to it correctly, you need my branch of purus pasta. (look in the discord server if you really want it, but it's still alpha)JTB wrote:Code: Select all
docker run -v /srv/hnh-map:/map -p 322:8080 andyleap/hnh-auto-mapper
-
Vassteel
- Posts: 718
- Joined: Thu Aug 15, 2013 12:38 pm
Re: Auto Mapping Implementation #2
So like a couple before me im trying to set this up with little experience however I did get to Step 8 Move into ~/hnh-map/ folder and run ./install.sh. Script should update nginx conf and systemd service
well theres no ./install.sh in that file so what do ?
well theres no ./install.sh in that file so what do ?
jorb wrote:Stop shitposting.
-
Vendan
- Posts: 10
- Joined: Sun Jan 02, 2011 8:56 pm
Re: Auto Mapping Implementation #2
You must be looking at the wrong repo or wrong thread. My automapper is a simple docker image, and can be run rather trivially if you have docker installed, no complex install procedures required...Vassteel wrote:So like a couple before me im trying to set this up with little experience however I did get to Step 8 Move into ~/hnh-map/ folder and run ./install.sh. Script should update nginx conf and systemd service
well theres no ./install.sh in that file so what do ?
-
Vassteel
- Posts: 718
- Joined: Thu Aug 15, 2013 12:38 pm
Re: Auto Mapping Implementation #2
so I wrote down every command I needed to do while I fumbled my way through getting the map setup
It prob could be shorter but I don't know enough about Linux stuff to know that
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
docker pull andyleap/hnh-auto-mapper
docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
vim /lib/systemd/system/docker.hnhmap.service
I for insert
P for Paste
[Unit]
Description=HnH map
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull andyleap/hnh-auto-mapper:v-3
ExecStart=/usr/bin/docker run --rm --name %n -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
[Install]
WantedBy=default.target
Escape :wq
service docker.hnhmap enable
service docker.hnhmap start
Close SSH
Navigate to your URL
Login admin/admin
Create new admin dont forget the check boxes
create user accounts check applicaple boxes
Generate Upload tokens
put url/token in client
restart client
hope it helps
It prob could be shorter but I don't know enough about Linux stuff to know that
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
docker pull andyleap/hnh-auto-mapper
docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
vim /lib/systemd/system/docker.hnhmap.service
I for insert
P for Paste
[Unit]
Description=HnH map
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull andyleap/hnh-auto-mapper:v-3
ExecStart=/usr/bin/docker run --rm --name %n -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
[Install]
WantedBy=default.target
Escape :wq
service docker.hnhmap enable
service docker.hnhmap start
Close SSH
Navigate to your URL
Login admin/admin
Create new admin dont forget the check boxes
create user accounts check applicaple boxes
Generate Upload tokens
put url/token in client
restart client
hope it helps
jorb wrote:Stop shitposting.