This article transferred from: http://www.blogjava.net/yongboy/archive/2013/12/12/407498.htmlObjectiveDocker is designed to provide an automated deployment solution for an application that quickly creates a container (lightweight virtual machine) on a Linux system and deploys and runs the application, making it easy to automate the installation, deployment, and upgrade of applications with configuration files. Because of the use of containers, it can be very convenient to the production
This article describes how to build a Docker-based PHP development environment. Docker is the best choice for virtual machine technology. For more information, see
This article describes how to build a Docker-based PHP development environment.
Use docker-compose to build the AspNetCore development environment,
Use docker-compose to build the AspNetCore Development Environment
1. Use docker-compose to build a Development Environment
Our goal is simple: Use
background : Projects require UI Automation testing in different versions of Chrome Firefox
status : A single machine can only install one version of the browser; Multiple computers are too troublesome to work together;
Solution : Simplify deployment of selenium grid distributed testing via Docker
1.Grid Introduction
Web-side Automation testing presents a single-largest state, most of which are done using selenium, and are the official su
by Falcon of tinylab.org2015/05/02Brief introductionThe lab environment for Linux 0.11 in five minutes describes how to quickly build a Linux 0.11 lab environment.This article describes how to quickly build a host-independent Linux 0.11 lab environment that can be used on any operating system hosting development machine and will be very handy for all types of students to learn Linux 0.11, this article only
Docker Learning Note II, based on Dockerfile to build Java Tomcat Runtime environmentObjectiveIn the first text, we completely manual, a command of a command input, implementation of a Java Tomcat runtime environment, although the initial results, but very tiring. If you rely on scripting to build a Tomcat container instance, a command can be done, why not. Fortunately,
ObjectiveDocker is designed to provide an automated deployment solution for an application that quickly creates a container (lightweight virtual machine) on a Linux system and deploys and runs the application, making it easy to automate the installation, deployment, and upgrade of applications with configuration files. Because of the use of containers, it can be very convenient to the production environment and development
Build a kafka cluster environment in a docker container
Kafka cluster management and status saving are implemented through zookeeper. Therefore, you must first set up a zookeeper cluster.
Zookeeper cluster Construction
I. software environment:
The zookeeper cluster requires more than half of the nodes to survive for external services. Therefore, the number of s
working directory is specified, and the/publish folder is automatically generated when we finish building4. External exposure 80 ports5. Copy the file into the mirror (required configuration), copy the project code from the/pulish directory into the Mirror6. Entry point assemblies for related projectsV. Pre-production preparation What, it's going to be a hurry to get that little button? If you are still calm, you should know that many pits have not been filled.1, the
Summarize the installation process as follows:Prerequisite: Install Git,go, Makegit clone https://[Email Protected]/docker/dockerCD Dockergit Checkout-B v1.5.0(Choose the version you want to compile and see the tag on GitHub) MakeBuild Makebinary compiles the generated files in the./bundles/1.5.0/binary/docker-1.5.0CP./bundles/1.5.0/binary/docker-1.5.0/usr/bin/
Functions of docker-compose
Docker-comopse can help us quickly build a development environment. For example, you can deploy redis, MongoDB, rabbitmq, MySQL, Eureka, and configserver on the local machine once, and then let them be the basis of other projects, which can be implemented.Communication between containers-links
Since each
webdriverfirefox_capabilities = {"browsername": "Firefox", "version": "62.0.3", # note that the version number must be written to "Platform": "any ", "javascriptenabled": True, "Marionette": True,} browser = WebDriver. remote ("http: // 192.168.179.128: 5555/WD/hub", desired_capabilities = firefox_capabilities) # note that port 5555 is the host machine port number mapped above browser. get ("http://www.baidu.com") browser. find_element_by_id ('kw '). send_keys ('
10.40.100.145 onDocker run-d--name consul0--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8500:8500 \docker-registry.venic.com:5000/consul:latest-server-advertise 10.40.100.145-bootstrap-expect 310.40.100.146 onDocker run-d--name consul1--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8
Installing DockerBefore only the Docker file, not how to contact the installation of Docker environment, this time also try it, first download DockerToolbox.exeAfter the installation is complete, the startup script start.sh, will default to check the version, if it is installed at the same time VirtualBox, it is recommended to restart, this card for a long time,
/
RUN mv resin-3.1.14 resin
expose 8080 entrypoint
["/opt/resin /bin/httpd.sh "]There's one line about this dockerfile.
ADD resin-3.1.14.tar.gz/opt/is to add the current directory resin-3.1.14.tar.gz to the container's/opt/directory and extract, of course, can also specify from the network offline (because the company speed is too slow, this is the way to use this).
Next we regenerate into a mirror that contains resin.
$ sudo docker build-t Pob
1. Installing DockerThe system environment I am currently using is CentOS7 , and the command to install Docker is the yum install docker*. As for other systems, you can go to Baidu to find its corresponding installation method.2. Configure the address of the Docker image warehouseFor now, direct access to the Docker's
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;
Offline install docker, configure Docker, and use Docker
As an offline deployment of Docker in a production environment, as well as deployment of applications using Docker, the following records make very detailed operational ste
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
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.