first commit
1
.env
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PUBLIC_MAPBOX_TOKEN='pk.eyJ1IjoicGlwcG9jYWwiLCJhIjoiY2xka28zdWVjMHBkZzNwbnoyMmlxYjA3MyJ9.9D5EB0SWydvAQZr-SdI64Q'
|
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
FROM arm64v8/node:latest
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt upgrade -y
|
||||||
|
RUN apt install nano
|
||||||
|
|
||||||
|
RUN git clone https://github.com/gpxstudio/gpx.studio.git gpxstudio
|
||||||
|
WORKDIR /gpxstudio/gpx
|
||||||
|
RUN npm install
|
||||||
|
RUN npm run build
|
||||||
|
WORKDIR /gpxstudio/website
|
||||||
|
COPY .env /gpxstudio/website
|
||||||
|
COPY ./favicon /gpxstudio/website/static
|
||||||
|
COPY icon /gpxstudio/website
|
||||||
|
#COPY package.json /gpxstudio/website
|
||||||
|
RUN sed -i 's/vite dev/vite dev --host 0.0.0.0 --port 8111/g' package.json
|
||||||
|
RUN sed -i 's/vite preview/vite preview --host 0.0.0.0 --port 8111/g' package.json
|
||||||
|
RUN sed -i 's/routing.gpx.studio/brouter.patachina.it/g' ./src/lib/components/toolbar/tools/routing/Routing.ts
|
||||||
|
RUN sed -i '/link rel/r icon' src/app.html
|
||||||
|
RUN npm install
|
||||||
|
RUN npm run build
|
||||||
|
#RUN npm run preview
|
||||||
|
#WORKDIR /
|
||||||
|
#COPY start.sh start.sh
|
||||||
|
CMD ["npm","run","preview"]
|
||||||
|
|
||||||
|
#ENTRYPOINT /bin/bash
|
40
Manual_Command.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
per far partire il docker
|
||||||
|
|
||||||
|
sudo docker run -it -d -p 8111:8111 --name prova arm64v8/node:latest
|
||||||
|
sudo docker exec -it prova /bin/bash
|
||||||
|
apt update
|
||||||
|
apt upgrade -y
|
||||||
|
apt install nano
|
||||||
|
git clone https://github.com/gpxstudio/gpx.studio.git gpxstudio
|
||||||
|
cd gpxstudio
|
||||||
|
cd gpx
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
cd ..
|
||||||
|
cd website
|
||||||
|
|
||||||
|
inserire la mapbox key
|
||||||
|
|
||||||
|
echo PUBLIC_MAPBOX_TOKEN='pk.eyJ1IjoicGlwcG9jYWwiLCJhIjoiY2xka28zdWVjMHBkZzNwbnoyMmlxYjA3MyJ9.9D5EB0SWydvAQZr-SdI64Q' >> .env
|
||||||
|
|
||||||
|
finire l'installazione
|
||||||
|
|
||||||
|
npm install
|
||||||
|
|
||||||
|
modificare package.json in modo da settare l'host a 0.0.0.0 per farlo vedere esternamente e la porta desiderata
|
||||||
|
|
||||||
|
sed -i 's/vite dev/vite dev --host 0.0.0.0 --port 8111/g' package.json
|
||||||
|
sed -i 's/vite preview/vite preview --host 0.0.0.0 --port 8111/g' package.json
|
||||||
|
|
||||||
|
per provare
|
||||||
|
|
||||||
|
npm run dev
|
||||||
|
|
||||||
|
per far girare velocemente
|
||||||
|
|
||||||
|
npm run build
|
||||||
|
npm run preview
|
||||||
|
|
||||||
|
per vedere il sito
|
||||||
|
|
||||||
|
http://<ip>:8111
|
36
README.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# GPX Studio nuovo
|
||||||
|
|
||||||
|
[original githuh](https://github.com/gpxstudio/gpx.studio)
|
||||||
|
|
||||||
|
## installazione
|
||||||
|
|
||||||
|
modificare il file .evn inserendo la key per mapbox
|
||||||
|
|
||||||
|
eseguire
|
||||||
|
|
||||||
|
./build.sh
|
||||||
|
|
||||||
|
far partire
|
||||||
|
|
||||||
|
sudo docker run -d --name gpxstudionew -e PUID=1000 -e PGID=1000 -e TZ=Europe/Rome -p 8111:8111 --restart unless-stopped gpxstudionew:latest
|
||||||
|
|
||||||
|
oppure tramite portainer o compose
|
||||||
|
|
||||||
|
services:
|
||||||
|
gpxstudionew:
|
||||||
|
container_name: gpxstudionew
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=Europe/Rome
|
||||||
|
ports:
|
||||||
|
- 8111:8111
|
||||||
|
restart: unless-stopped
|
||||||
|
image: gpxstudionew:latest
|
||||||
|
|
||||||
|
## Prove
|
||||||
|
|
||||||
|
utilizzare questi comandi
|
||||||
|
|
||||||
|
[comandi manuali](./Manual_Command.md)
|
||||||
|
|
2
build.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sudo docker build -t gpxstudionew --no-cache .
|
11
docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
services:
|
||||||
|
gpxstudionew:
|
||||||
|
container_name: gpxstudionew
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=Europe/Rome
|
||||||
|
ports:
|
||||||
|
- 8111:8111
|
||||||
|
restart: unless-stopped
|
||||||
|
image: gpxstudionew:latest
|
BIN
favicon/android-icon-144x144.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
favicon/android-icon-192x192.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
favicon/android-icon-36x36.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
favicon/android-icon-48x48.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
favicon/android-icon-72x72.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
favicon/android-icon-96x96.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
favicon/apple-icon-114x114.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
favicon/apple-icon-120x120.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
favicon/apple-icon-144x144.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
favicon/apple-icon-152x152.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
favicon/apple-icon-180x180.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
favicon/apple-icon-57x57.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
favicon/apple-icon-60x60.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
favicon/apple-icon-72x72.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
favicon/apple-icon-76x76.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
favicon/apple-icon-precomposed.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
favicon/apple-icon.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
2
favicon/browserconfig.xml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
BIN
favicon/favicon-16x16.png
Normal file
After Width: | Height: | Size: 1,023 B |
BIN
favicon/favicon-32x32.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
favicon/favicon-96x96.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
favicon/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
41
favicon/manifest.json
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"name": "Gpx.Studio",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-36x36.png",
|
||||||
|
"sizes": "36x36",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "0.75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-48x48.png",
|
||||||
|
"sizes": "48x48",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-72x72.png",
|
||||||
|
"sizes": "72x72",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-96x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "3.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "4.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
favicon/ms-icon-144x144.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
favicon/ms-icon-150x150.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
favicon/ms-icon-310x310.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
favicon/ms-icon-70x70.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
17
icon
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="%sveltekit.assets%/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="%sveltekit.assets%/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="%sveltekit.assets%/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="%sveltekit.assets%/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="%sveltekit.assets%/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="%sveltekit.assets%/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="%sveltekit.assets%/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="%sveltekit.assets%/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="%sveltekit.assets%/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="%sveltekit.assets%/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="%sveltekit.assets%/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="%sveltekit.assets%/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="%sveltekit.assets%/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="%sveltekit.assets%/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
18
icon.txt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="%sveltekit.assets%\/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="%sveltekit.assets%\/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="%sveltekit.assets%\/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="%sveltekit.assets%\/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="%sveltekit.assets%\/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="%sveltekit.assets%\/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="%sveltekit.assets%\/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="%sveltekit.assets%\/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%\/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image\/png" sizes="192x192" href="%sveltekit.assets%\/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image\/png" sizes="32x32" href="%sveltekit.assets%\/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image\/png" sizes="96x96" href="%sveltekit.assets%\/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image\/png" sizes="16x16" href="%sveltekit.assets%\/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="%sveltekit.assets%\/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="%sveltekit.assets%\/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
2
start.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sudo docker run -d -p 8111:8111 --name gpxstudionew gpxstudionew
|