Learn docker from scratch to deploy a slightly loaded application

We talked about deploying a simple Python program before. In this section, we will extend the Python program, connect redis database, and do some operations on redis. New App.py, as follows: from flask import Flask from redis import Redis import os import socket app = Flask(__name__) redis = Redis(host=os.environ.get('REDIS_HOST', '12 ...

Posted by iShaun on Sat, 29 Jun 2019 20:28:14 +0200

Using Docker to Build AOSP(Android Source Code) Compiling Environment on Mac Platform

Local environment: macOS 10.12.5 Working directory: ~/android-docker/ I. Preparing case-sensitive disk images Create a disk image First, use the following command to view disk information. diskutil info / If the File System Personality of disk information is Case-sensitive Journaled HFS+, then the current file system is case-sensitiv ...

Posted by Xproterg^vi on Thu, 27 Jun 2019 21:20:54 +0200

3 Hours Quick Start RocketMQ

Recently, RocketMQ has just started its production environment. In your spare time, share something here. The main purpose is for beginners to get started with RocketMQ quickly. What is RocketMQ Introduction to RocketMQ on Github:RcoketMQ is a message middleware with low latency, high reliability, scalability and ease of use.It has the followin ...

Posted by Ju-Pao on Mon, 24 Jun 2019 19:47:57 +0200

docker and git implementation push-to-deploy

background Recent research into docker-based continuous delivery processes has allowed docker to build host-independent software environments that can push-to-deploy docker containers while pushing code to remote repositories through the git hooks mechanism (triggering a specific script in the $GIT-DIR/hooks directory when a particular event oc ...

Posted by phpBuddy on Thu, 20 Jun 2019 19:38:44 +0200

Deploying OpenStreetMap Server with Docker

Last month, my teacher asked me to build Docker's OSM server. At that time, I stepped on the pit while recording. Finally, I got the deployment, so I blogged. I. Install and configure Docker This section describes the installation steps of docker in centOS 7 environment. The content is from http://www.runoob.com/docker/docker-tutorial.html Fo ...

Posted by Sassci on Wed, 19 Jun 2019 01:43:59 +0200

HAproxy + keepalive + Kubeadm install kubernetes master

HAproxy + keepalive + Kubeadm installation kubernetes master highly available Author: Zhang Shoufu Time: 2019-06-18 Personal blog: www.zhangshoufu.com QQ group: 895291458 Network Topology Host Planning, System Initialization Machine Information host name IP Address Effect K8s-master01 192.168.1.25 Kubernetes master/etcd, keepalive (pr ...

Posted by mw-dnb on Tue, 18 Jun 2019 18:17:01 +0200

Use of until, while, case and other statements

We have already introduced the basic use of while and other methods, so as to introduce you another way to follow the way and while, until special use. 1. until format until condition ;do Circulatory body done Entry Conditions: If the judgement condition is false, it will enter the loop body for execution. Exit condition: If the judgme ...

Posted by cableuser on Mon, 03 Jun 2019 23:55:54 +0200

Continuous integration using Jenkins (PHP code)

In the docker project, jenkins built by a single organization use gitlab web hook to integrate the project continuously. Note that this project is php project without build and test part. As for the test part, we will only carry out a submission and deployment function in the next section. This session will not talk about how to use docker to d ...

Posted by s_dhumal on Fri, 31 May 2019 21:06:13 +0200

Docker multi-stage build mechanism

With the release of version 17.05, Docker has also made an important update to the image building area, namely multi-stage build (multi-stage build), which is a real help to the long-term partners who have been troubled by the large image. Multi-phase construction is not supported Before version 17.05, we used to build Docker images in two way ...

Posted by mikosiko on Wed, 29 May 2019 23:03:28 +0200

docker mysql master-slave replication practice (pro-test feasible)

Modify configuration mode in container 1. Assume that the reader docker has been installed on CentOS 6.5 (or other operating systems) Detected version: docker -v Docker version 1.7.1, build 786b29d/1.7.1 2. Pull out the mirror docker pull hub.c.163.com/library/mysql:5.7 # Or elsewhere docker images #See if there is a list of mirrors 3. ...

Posted by Sera on Fri, 24 May 2019 23:17:22 +0200