CREATE TABLE t_warehourse ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(16) NOT NULL, remark varchar(64) NOT NULL, enabled tinyint(1) NOT NULL, created datetime(6) NOT NULL, updated datetime(6) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT character set UTF8mb4 collate utf8mb4_bin;
run.sh
docker run --name testmysql -v "$PWD/data":/var/lib/mysql -p 3306:3306 -d mymysql
point:
mysql 存储文件在:/var/lib/mysql,一般会持久化 bind。这样即使容器退出了,数据还在。
Site Reliability Engineering (SRE), The main goals are to create scalable and highly reliable software systems. According to Ben Treynor, founder of Google's Site Reliability Team, SRE is "what happens when a software engineer is tasked with what used to be called operations."[1]
It's also been associated with a practice that encompasses automation of manual tasks, continuous integration and continuous delivery.
SREs, being developers themselves, will naturally bring solutions that help remove the barriers between development teams and operations teams.
difference devops with sre:
SRE and DevOps share the same foundational principles. SRE is viewed by many (as cited in the Google SRE book) as a "specific implementation of DevOps with some idiosyncratic extensions."