https://github.com/bbougon/ousontmesaffaires
https://github.com/bbougon/ousontmesaffaires
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbougon/ousontmesaffaires
- Owner: bbougon
- Created: 2015-04-26T16:15:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T06:38:48.000Z (over 7 years ago)
- Last Synced: 2024-04-16T01:42:07.037Z (about 2 years ago)
- Language: Java
- Size: 708 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Où sont mes affaires
[](https://travis-ci.org/bbougon/ousontmesaffaires)
[](https://codecov.io/gh/bbougon/ousontmesaffaires/codecov.io?branch=master)
## CI
https://travis-ci.org/bbougon/ousontmesaffaires
## Docker
### Building container
`docker build -t ou-sont-mes-affaires-api .`
### Creating bridge network
`docker network create --driver=bridge --subnet=192.168.100.0/24 bridge-ou-sont-mes-affaires`
### Running mongo db container
***Run mongo container***
`docker run -d --ip 192.168.100.2 --network=bridge-ou-sont-mes-affaires --name ou-sont-mes-affaires-mongo mongo`
### Running Ou Sont Mes Affaires container
***Run container***
```bash
docker run -d --rm --name ou-sont-mes-affaires-server --env-file ./.env.list --mount source=ou-sont-mes-affaires-image-storage,target=/image-storage --publish 8080:8182 -w /usr/src/ousontmesaffaires/ --ip 192.168.100.10 --network=bridge-ou-sont-mes-affaires ou-sont-mes-affaires-api java -jar ousontmesaffaires-docker-jar-with-dependencies.jar
```
***Run in debug mode***
```bash
docker run -d --rm --name ou-sont-mes-affaires-server --env-file ./.env.list --mount source=ou-sont-mes-affaires-image-storage,target=/image-storage --publish 8080:8182 --publish 8787:8787 -w /usr/src/ousontmesaffaires/ --ip 192.168.100.10 --network=bridge-ou-sont-mes-affaires ou-sont-mes-affaires-api java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8787,suspend=n -jar ousontmesaffaires-docker-jar-with-dependencies.jar
```
### Running Ou Sont Mes Affaires angular container
```
docker run -d --rm --name ou-sont-mes-affaires-angular --publish 4200:80 --ip 192.168.100.15 --network=bridge-ou-sont-mes-affaires ou-sont-mes-affaires-web
```
### Some docker command
`docker container ls -a`
`docker network ls`
`docker ***COMMAND*** inspect`
`docker exec -it ou-sont-mes-affaires-server /bin/bash`
`docker logs ou-sont-mes-affaires-server`
`docker container rm CONTAINER_NAME`
`./runDocker.sh`