Alibabacloud.com offers a wide variety of articles about how to build docker image, easily find your how to build docker image information here online.
Every time a team builds an application, it is troublesome and error-prone to export the war package through eclipse/sts, then upload it to the server, copy it to Tomcat, and manually stop/start the Tomcat service.
I used Gitlab, MAVEN, Docker tools, plus a shell script, to make a simple automated build tool.
1. First install JDK version 64, MAVEN, modify/etc/profile file as follows:
java_home=/home/git/jdk
, repeatable environment. LXC command is somewhat complex, if interested, here is an article I wrote previously based on LXC, (The implementation principles, related theories, application scenarios, etc., will be written later in this series, here first a scratch, completely manual, based on Docker to build a tomcat operating environment. First out a smarty pants demo, you can see the effect, may let us go
-slave database by using Mycat.build MySQL master-slave architectureThe uses two physical machines dev-11, two container on dev-12, one container as MySQL master and the other as slave 1. Build a docker network across hosts Docker Network create-d overlay Multihost and creates a Container-control container for connecting to database tests.
In the previous chapter "Docker Kafka study, one of the trilogy: the Speed of experience Kafka" we quickly experienced the Kafka message distribution and subscription functions, but the impression of the environment is only the implementation of a few commands and scripts, this chapter we learn how to write these scripts in combat, Build local Kafka environment;
This practice will make
/wordpress/#build-the-projectCreate a project name, such as mywordpress (which directory can be created)~# mkdir mywordpressEnter the project file~# cd my_wordpressCreate a Dcoker-compose.yml file~# vim docker-compose.ymlThe file contents are as followsversion: ‘3.3‘services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql restart: alwa
The Docker build command is used to create a mirror using Dockerfile.GrammarDocker build [OPTIONS] PATH | URL | -Options Description:
--build-arg=[]: Sets the variable when the image is created;
--cpu-shares: set CPU usage weight;
--cpu-period: limit the CPU CFS cycl
Golang Docker imageFirst, if we write the file directly inside the Docker container, the data cannot be persisted. Even if you can use the Docker CP command to copy our files to the inside of the container, or to copy the files from the container, there are still a lot of inconvenient places in the operation.Furthermore, the third-party package that the program
Due to display formatting problems, recommended to the original blog read: https://my.oschina.net/sunchp/blog/616526
1 Docker vs. virtual machines
2 Building process
2.1 Preparing the host system
Prepare a CentOS 7 operating system with the following requirements:
Must be a 64-bit operating system
Recommended kernel is above 3.8
View your CentOS kernel using the following command:
# Uname-r
2.2 Installing Docker
previously based on LXC, (The implementation principles, related theories, application scenarios, etc., will be written later in this series, here first a scratch, completely manual, based on Docker to build a tomcat operating environment. First out a smarty pants demo, you can see the effect, may let us go farther.EnvironmentIn all environments, VMware workstation runs UBUNTU-13.10-SERVER-AMD64 on a 64-bi
build docker-registry on Mac server
2014-03-14 0 Comments Source: Build Docker-registry collection on Mac server
I want to contribute
.
This article describes how to build Docker's registry under Mac, we download
Foreword because most of the image download websites are abroad, Chinese users often encounter slow download speeds when downloading images; in addition, when Docker is applied to the production environment, it also faces the security issue of the downloaded Docker image. Because some private data is built in the produ
need to repeat the code containing glog, directly add a reference to it can be, so there are many benefits, When the code in the library is modified and can be updated directly to the remote code repository, the library can be imported automatically at clone, which means that the specific code is pulled locally, but only the reference is saved in the remote repository.You can generate glog this submodule by command: git submodule add https://github.com/golang/glog.git src/github.com/golang/glog
Last night using Dockerfile to generate a mirror, cut off the network, leading to images repository appearance His name and tag are all for none.Error message:Failed to remove image (BCEAAE03D0EA): Error response from daemon:conflict:unable to delete bceaae03d0ea (must be forced )-image is being used by stopped container 31142aabc63cFirst I look at the mirrorThen look at the container, including the exit af
Transferred from: HTTP://WWW.VCKAI.COM/P/291. Installing DockerThis will not be said, will not be able to look at my previous article "Docker Introduction and Installation."1) Start Docker# service Docker Start2. Download the Docker imageOfficial website Docker Mirror site:
Docker practice 5: Build redmine and dockerredmine
Redmine is an open-source project management system. It has the following advantages for me to choose it as my project management tool.
1. Support multi-project management
2. Flexible role management
3. Flexible issue/bug Tracking Management
4. Supports Gantt charts and calendars
5. Support for news, document and file management, email notification, and oth
(foreign too slow, I use a domestic mirror source)(2) Make a short labelsudo docker tag index.tenxcloud.com/centos:latest centos:latest (tag a short label for easy entry)(3) Running the containerDocker Run-i-T Centos:latest/bin/bashAt this point, you can install the PHP mysql NginxFor example, you can use Www.lnmp.org's installation packageExit after installation LNMP complete(4) Package new imageView the Docker
Preparatory workEnvironment:
Linux environment or Mac, do not use Windows
JDK 8
Maven 3.0
Docker
See Docker tutorial for no knowledge of Docker.Create a Springboot ProjectIntroduce a web-based start-up dependency and create a controler:@SpringBootApplication @restcontrollerpublic class Springbootwithdockerapplication { @RequestMapping ("/") Public String Home () { retu
$ KRE_VERSION-a default \
Kvm alias default | xargs-I ln-s $ KRE_USER_HOME/packages/{}$ KRE_USER_HOME/packages/default"
# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
RUN apt-get-qqy install \
Autoconf \
Automake \
Build-essential \
Libtool
RUN LIBUV_VERSION = 1.0.0-rc2 \
Amp; curl-sSL https://github.com/joyent/libuv/archive/v??libuv_version=.tar.gz | tar zxfv--C/usr/local/src \
Cd/usr/lo
I. background
I recently think of the bastion host system that my company has previously used. I think it is very convenient to use. However, my company has not set up such a system. I think it may be useful in the future. And it has been a bit of time recently, therefore, I am interested in building a bastion host system. I have referenced many documents during the building process. The most detailed document is the official document. The address is as follows:
Jumpserver document
Ii. Operati
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.