Piggymetrics is Springcloud's demo, its characteristics are not detailed, mainly described in Win10 under deployment of the pit.
Official website is: https://github.com/sqshq/PiggyMetrics
The deployment process of the official website is simple, as follows
It is still difficult for Windows users and for Linux and Docker White.
1. First install Docker for Windows
Pit 1:docker in win platform also has a version is Dockertoolbox, these two incompatible, at that time thought Toolbox installed a VirtualBox, feel there is a better interface management, but actually these two incompatible. Using a different virtual technology, Docker for Windows uses Hyper-v,toolbox to adopt the Virtualbox,docker Ari as recommended win10 above using Docker for Windows. So do not install at the same time two, if accidentally installed two, uninstall thoroughly, the C:\Users\XXX\.docker deleted, the user environment variables about Docker are deleted, and then reinstall Docker for Windows.
Pit 2: After installation is sure to set the memory, the default memory is 2G, but the project requirements are 4G, this eye leakage will lead to the drive crazy read and write, the state of the program suspended animation.
2. This is the setting environment variable, export is the syntax of Linux setting environment variable.
Pit 1: But I set the windows inside the seemingly no effect, only the environment variables involved in the DOCKER-COMPOSE.YML are used fixed values, such as "root".
3. Packaging, the general note is to set the MAVEN image and warehouse address, nothing.
4. "Don't be busy doing it, see Pit 2" use Docker-compose to organize the project into a Docker container, which involves the generation of Docker image, container loading, and long time.
Pit 1:docker need to be replaced in the home, refer to this https://yeasy.gitbooks.io/docker_practice/content/install/mirror.html
The pit 2:\piggymetrics\mongodb\init.sh format needs to be changed to UNIX and modified using notepad++. The pit is the most secretive, because although not modified, the image can be generated successfully, just load container when the error "No such file ...".
Pit 3: There are more projects, ports may be occupied, either adjust the win under the process, or modify the port in the project. There is a expose XXXX port number in the Dockerfile in each project, as well as a port definition for docker-compose.dev.yml and docker-compose.yml files.
Pit 4: If you have accidentally generated an image and loaded the container, after you change the pit 2, you need to re-build the image below in the \piggymetrics\mongodb\ directory, note the final "."after the build succeeds " Docker-compose-f docker-compose.yml-f docker-compose.dev.yml up "can be.
Docker build-t Sqshq/piggymetrics-mongodb:latest.
5. Finally according to the website of the link click Test, generally no problem, and then there are other pits only to step on their own.
Piggymetrics Windows Deployment