-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correction du pom.xml de TakenokoRepository l'application tourne correctement sous docker Voir le README pour lancer l'application probleme : tourne dans docker mais ne communique pas sur le localhost !! #28
- Loading branch information
ChloeMaccarinelli
committed
Apr 22, 2019
1 parent
ac40c17
commit ebc10be
Showing
9 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
# TakenokoLan | ||
# TakenokoLan | ||
|
||
Docker : | ||
Pour lancer l'application dans docker : | ||
se placer dans le dossier ProjetM1 et effectuer les commandes suivantes: | ||
|
||
mvn clean install //crée les fichiers .jar utiles | ||
# docker system prune -a -f && docker pull docker// attention supprime toutes vos images et containers déjà existant on doit recuperer l'image docker dans ce cas | ||
cd serveur | ||
docker build -f Dockerfile -t serveur . //crée l'image serveur | ||
cd .. | ||
cd joueur | ||
docker build -f Dockerfile -t joueur . //crée l'image joueur | ||
cd .. | ||
docker-compose up | ||
|
||
ensuite vous allez dans votre navigateur et vous lancez l'url suivante : | ||
|
||
http://192.168.99.100:8081/newPlayer //nouveau joueur |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ FROM java:8 | |
EXPOSE 8081 | ||
ADD target/joueur-1.0.jar joueur-1.0.jar | ||
CMD ["java","-jar","joueur-1.0.jar"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
server: | ||
port : 8081 | ||
port : 8081 | ||
adresse : 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ FROM java:8 | |
EXPOSE 8080 | ||
ADD target/serveur-1.0.jar serveur-1.0.jar | ||
CMD ["java","-jar","serveur-1.0.jar"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
server: | ||
port : 8081 | ||
port : 8080 | ||
adresse : 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters