Skip to content
Snippets Groups Projects
Verified Commit 259acf24 authored by Marco Aceti's avatar Marco Aceti
Browse files

Update Docker instructions

parent 6ed1bf79
No related branches found
No related tags found
No related merge requests found
...@@ -23,3 +23,7 @@ Tutti i contenuti sono rilasciati sotto licenza [Creative Commons BY-NC-SA 4.0]( ...@@ -23,3 +23,7 @@ Tutti i contenuti sono rilasciati sotto licenza [Creative Commons BY-NC-SA 4.0](
## Visualizzare ## Visualizzare
Gli appunti sul branch `master` sono automaticamente compilati in HTML e disponibili su [https://marcobuster.github.io/sweng/](https://marcobuster.github.io/sweng/). Gli appunti sul branch `master` sono automaticamente compilati in HTML e disponibili su [https://marcobuster.github.io/sweng/](https://marcobuster.github.io/sweng/).
## Compilare
Nella documentazione è presente [una guida](https://marcobuster.github.io/sweng/00_informazioni/02_contribuire.html#consigliato-installazione-di-tutte-le-dipendenze-tramite-docker) per eseguire e compilare gli appunti tramite Docker.
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
docker run \ docker run \
--rm \ --rm \
--interactive \ --interactive \
--tty \
--mount type=bind,source="$(pwd)",target=/usr/src/app \ --mount type=bind,source="$(pwd)",target=/usr/src/app \
--publish 3000:3000 \ --publish 3000:3000 \
--user $(id -u):$(id -g) \ --user $(id -u):$(id -g) \
appunti_sweng \ ghcr.io/marcobuster/sweng \
serve --hostname 0.0.0.0 --port 3000 serve --hostname 0.0.0.0 --port 3000
...@@ -14,12 +14,7 @@ Per strutture complesse, è possibile embeddare dell'HTML (e del CSS) nel file M ...@@ -14,12 +14,7 @@ Per strutture complesse, è possibile embeddare dell'HTML (e del CSS) nel file M
> $ git pull > $ git pull
> ``` > ```
> >
> 2. costruisci l'immagine Docker: > 2. crea un container ed eseguilo, ricondandoti di:
>
> ```
> $ docker build -t appunti_sweng .
> ```
> 3. crea un container ed eseguilo, ricondandoti di:
> - mappare le porte 3000/tcp sul tuo host; > - mappare le porte 3000/tcp sul tuo host;
> - mappare la cartella del progetto a `/usr/src/app` nel container; > - mappare la cartella del progetto a `/usr/src/app` nel container;
> - mappare correttamente l'utente; > - mappare correttamente l'utente;
......
# Sommario # Sommario
[Introduzione](./00_informazioni/00_index.md) [Introduzione](./00_informazioni/00_index.md)
[Autori](./00_informazioni/01_contributori.md) [Autori](./00_informazioni/01_autori.md)
[Come contribuire](./00_informazioni/01_contribuire.md) [Come contribuire](./00_informazioni/02_contribuire.md)
[Convenzioni di stile e contenuto](./00_informazioni/03_convenzioni.md) [Convenzioni di stile e contenuto](./00_informazioni/03_convenzioni.md)
# Prodotto e processo # Prodotto e processo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment