Piggymetrics Windows Deployment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.