Docker packages nodejs project and database
To read this article, you must know the basic docker. This article only provides ideas and part of the code, not responsible for teaching
All orders must be handled carefully! look before you leap
command
Stop all running containers
docker stop $(docker ps -a -q)
Delete all containers
docker rm $(docker ps -a -q)
Using docker compose to start t ...
Posted by dreamwest on Sat, 16 Nov 2019 08:40:37 -0800
009.Kubernetes binary deployment Kube apiserver
I. deploy the master node
1.1 master node service
The kubernetes master node runs the following components:
kube-apiserver
kube-scheduler
kube-controller-manager
kube-nginx
Kube apiserver, Kube scheduler and Kube controller manager all run in multi instance mode:
Kube scheduler and Kube controller manager will automatically elect ...
Posted by persepha on Sat, 16 Nov 2019 05:45:28 -0800
ThinkPHP6 Core Analysis: System Services
What are system services?System services are bindings that identify the class used by the program before it is used, so that the container can parse it (via the register method of the service class), initialize some parameters, register routes, etc. (not limited to these operations, but mainly look at the needs of a class before it is used, con ...
Posted by amelhedi on Sat, 16 Nov 2019 00:48:56 -0800
The solution of using mybatis and PostgreSQL Json fields as query criteria
Date:2019-11-15
Think before reading:
You didn't think of a solution?
Is PostgreSQL database supported by itself or is there another solution?
Note: first of all, the reason why the database uses the Json data type is that when we do an app push business, the backend pushes several fields to the app We use jsonb data type directly here.
Using ...
Posted by thelinx on Fri, 15 Nov 2019 11:12:40 -0800
005.Kubernetes binary deployment kubectl
I. deployment of kubectl
1.1 installation of kubectl
1 [root@k8smaster01 ~]# cd /opt/k8s/work
2 [root@k8smaster01 work]# wget https://dl.k8s.io/v1.14.2/kubernetes-client-linux-amd64.tar.gz
3 [root@k8smaster01 work]# tar -zxvf kubernetes-client-linux-amd64.tar.gz
1.2 distribution of kubectl
1 [root@k8smaster01 ~]# cd /opt/k8s/work
...
Posted by malcome_thompson on Fri, 15 Nov 2019 11:05:10 -0800
Vue implements calendar rendering
Need to make a check-in calendar, first simply make the effect of the calendar, directly share the source code, if you need to use it directly
<template>
<div>
<!-- Calendar head -->
<div class="calenderTitle">
<div class="calenderItem" v-for="item of calenderTitel">{{item}}</div>
</di ...
Posted by fxpepper on Fri, 15 Nov 2019 09:51:19 -0800
Delphi parses and modifies the Json file based on superobject.pas (ISuperObject)
After a series of twists and turns, it is still convenient for delphi to read and modify json files;
Find a delphi tripartite library ISuperObject on the network, add it to the project and reference it directly;
Download address
Several commonly used functions in ISuperObject:
Function SO(const s: SOString = '{}'): ISuperObject; overload; ...
Posted by SmokyBarnable on Fri, 15 Nov 2019 09:09:41 -0800
Go Gin source learning
Start
In the previous article, I learned the overall process of the Gin framework, but I looked at the research of the main process in the source code which was affected by many scattered and small functions. So I think I can imitate the Gin framework and write a demo with only the main process. We can learn more about the source code in the pr ...
Posted by onegative on Fri, 15 Nov 2019 07:47:11 -0800
Python visual artifact used by Yellowbrick
Preface
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: cold city of Yishui
PS: if you need Python learning materials, you can click the lin ...
Posted by grimz on Thu, 14 Nov 2019 23:41:00 -0800
Query in mongoose
find()
Model.find(filter[, projection][, options][, callback])
Parameter 1: filter
The query condition uses the format of JSON document, and the syntax of JSON document follows MongoDB shell The same is true.
{ field1: value1, field2: { operator: value2 } ... }
1. Find all
Model.find()
Model.find({})
2. Accurate search
Model.find({author:'dora' ...
Posted by lplatz on Thu, 14 Nov 2019 22:29:05 -0800