Spring Boot Hello Person example
http://localhost:8080/Hovhannisyan
mvn clean package && java -jar spring-boot-app-example-0.0.1.jar
- Please from IDEA please use following configs in metaring.config.json
"ff4j": {
"config": {
"name": "ff4j-features-dev"
}
}
- For development mode from IDEA please use following configs in metaring.config.json
"data": {
"mongodb": {
"host": "localhost",
"port": 27017,
"database": "metaringPrototype"
}
}
- For docker containers please use following configs in metaring.config.json
"ff4j": {
"config": {
"name": "ff4j-features"
}
}
- For docker containers mode from IDEA please use following configs in metaring.config.json
"data": {
"mongodb": {
"host": "mongodb",
"port": 27017,
"database": "metaringPrototype"
}
}
mvn dockerfile:build
APP_CONFIG='./src/main/resources' docker-compose up -d
mvn clean install && APP_CONFIG='./src/main/resources' docker-compose up
NOTE FOR WINDOWS USERS:
- Please make sure that have installed docker desktop on your local machine and in Settings -> General -> (expose demon on tcp://localhost:2375 without TLS) is enabled.
- Set the environment variable COMPOSE_CONVERT_WINDOWS_PATHS=1
- In Settings -> Shared Drives share at least your main System Drive
docker ps -a
docker images ls
docker volume ls
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rm container_id1 container_id2
docker rmi $(docker images -q)
docker system prune
docker rmi image_id1 image_id2 - delete image(s)
docker inspect image_id
docker inspect container_id
docker exec -i -t metaring-mongo-service /bin/bash root@ff55937c3772:/# mongo root@ff55937c3772:/# show dbs root@ff55937c3772:/# use metaringPrototype root@ff55937c3772:/# db.users.find()