first commit
This commit is contained in:
commit
3a03934a15
6 changed files with 92 additions and 0 deletions
1
.env
Normal file
1
.env
Normal file
|
@ -0,0 +1 @@
|
|||
PUBLIC_MAPBOX_TOKEN='pk.eyJ1IjoicGlwcG9jYWwiLCJhIjoiY2xka28zdWVjMHBkZzNwbnoyMmlxYjA3MyJ9.9D5EB0SWydvAQZr-SdI64Q'
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM arm64v8/node:latest
|
||||
|
||||
RUN apt update
|
||||
#RUN apt upgrade -y
|
||||
RUN apt install nano
|
||||
|
||||
RUN git clone https://github.com/ruisaraiva19/favycon.git
|
||||
WORKDIR /favycon
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
CMD ["yarn","start"]
|
69
README.md
Normal file
69
README.md
Normal file
|
@ -0,0 +1,69 @@
|
|||
# GPX Studio nuovo
|
||||
|
||||
[original githuh](https://github.com/gpxstudio/gpx.studio)
|
||||
|
||||
## installazione
|
||||
|
||||
modificare il file .env 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)
|
||||
|
||||
## Inserimento delle favicon (procedimento utilizzato)
|
||||
|
||||
è stato utilizzato questo sito [favicon generator](https://www.favicon-generator.org/)
|
||||
|
||||
il file icon contiene i link generati con favicon generator
|
||||
|
||||
COPY icon /gpxstudio/website
|
||||
|
||||
e' stato variato l'indirizzamento al folder corretto usando nel path la variabile
|
||||
|
||||
%sveltekit.assets%
|
||||
|
||||
in fase di build vengono inseriti i link alle icone nel file website/src/app.thml
|
||||
|
||||
sed -i '/link rel/r icon' src/app.html
|
||||
|
||||
e tutte le icone generate sono nel folder favicon e vengono copiate in website/static
|
||||
|
||||
COPY ./favicon /gpxstudio/website/static
|
||||
|
||||
in manifest.json (in favicon folder) viene inserito il nome della app
|
||||
|
||||
## Inserimento del server di routing oltre all'host per il docker (0.0.0.0) e la porta di comunicazione
|
||||
|
||||
in Dockerfile c'è l'inserimento del server di routing che in questo caso è brouter.patachina.it
|
||||
|
||||
sed -i 's/routing.gpx.studio/brouter.patachina.it/g' ./src/lib/components/toolbar/tools/routing/Routing.ts
|
||||
|
||||
in website/packaging.json si inserisce l'host 0.0.0.0 di default per poter camunicare con l'esterno del docker e la porta (in questo caso 8111)
|
||||
|
||||
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
|
||||
|
2
build.sh
Executable file
2
build.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
sudo docker build -t favicon --no-cache .
|
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
services:
|
||||
favicon:
|
||||
ports:
|
||||
- 8112:3000
|
||||
container_name: favicon
|
||||
image: favicon
|
||||
restart: unless-stopped
|
2
start.sh
Executable file
2
start.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
sudo docker run -d -p 8112:3000 --name favicon favicon
|
Loading…
Reference in a new issue