Alibabacloud.com offers a wide variety of articles about docker for java developers, easily find your docker for java developers information here online.
1. The Docker container and the system time are inconsistent because the Docker container has a native time zone of 0 time zones, while the domestic system is in the East eight zone.2. There is also a eight-hour time difference between the log time played by the Java application running in the container and the standard time of the container obtained through the
Build a Java compilation environment with Dockerfile1. Include the following packages
Ubuntu
Jdk
Maven
Svn
2, JDK, maven need to download manually, after downloading for
Jdk-8u51-linux-x64.gz
Apache-maven-3.3.3-bin.tar.gz
3. Create a Dockerfile file with the following contentFROM ubuntuRUN apt-get updateRUN apt-get -y install subversionADD jdk-8u51-linux-x64.gz /usr/localADD apache-maven-3.3.3-bin.tar.gz /us
1, System Management-system settings, add SSH remote hosts2. System Management--Global tool configuration, configure local Jdk,maven3. Create a new task and select "Build a Maven project"3. Configuration3.1. Select "Discard old build" to avoid full disk3.2, source management, choose SVN, configure the address and account3.3. Select manual build, do not configure build trigger3.4. Build the Environment3.4.1, Packaging3.4.2, execute shell, locally compile Dock
Docker runs ACTIVEMQ, log time and container time as follows:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/F4/wKioL1ZyPt-S8Yg9AAMaJK5fMJk997.png "title=" amq_ Time.png "alt=" Wkiol1zypt-s8yg9aamajk5fmjk997.png "/>d me to execute the date command a few minutes, from time to find the exact difference of 8 hours, suspected or time zone reasons.2. DoubtsA friend said that the host's/etc/locatime mounted in the container will resolve
a template, Container1 is a real basin created from this template, which runs on our tomcat. So we can create a lot of container with the same image. Three. Deploy our applications on Tomcat
Next we are going to deploy our application, the idea is to enter into the container1 inside, at this time can think of Container1 as a new machine, we only need to go to Tomcat WebApp lost war, and then restart on the line. 1. Go inside the container
Docker exec
Weekly Technology first-glance, always have what you want! Mobile Development
"Software" Mobile-side web framework Frozen UI
"Blog" the usage of various adapter of Android
server-side development/management
"Translation" the competition for Docker comes immediately
"Translation" Docker and PID 1 zombie process issues
"Software" node. JS Serial read/write package Node-serialport
"
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.