小白菜

迷失的人迷失了,相逢的人会再相逢

spring多数据源切换

 利用aop实现注解切换数据源: 首先配置数据库连接信息dbconfig.properties. # gitlab数据库连接 gitlab.driver=com.mysql.cj.jdbc.Driver gitlab.url=jdbc:mysql://localhost:3306/gitlab gitlab.username=root gitlab.password=12345 # ...

Jaywoods January 11, 2017 暂无评论

k8s部署gitlab

部署gitlab 创建数据库 这里使用已有数据库,所以首先创建用户和数据库(没有创建的参考mysql部署)。 # 创建数据库 create schema gitlabhq_production default character set utf8; # 创建用户,赋予密码 CREATE USER gitlab@'%' IDENTIFIED BY 'password'; CREATE US...

Jaywoods January 4, 2017 暂无评论

k8s部署mysql

mysql数据库部署 编写mysql.yaml kind: Namespace apiVersion: v1 metadata: name: db --- kind: Deployment apiVersion: extensions/v1beta1 metadata: name: mysql57 namespace: db spec: replicas: 1 ...

Jaywoods January 4, 2017 暂无评论

k8s部署nginx文件服务器

部署nginx文件服务器 编写Dockerfile FROM nginx MAINTAINER jianwu.bin@hand-china.com RUN echo "Asia/shanghai" > /etc/timezone; ADD default.conf /etc/nginx/conf.d/default.conf VOLUME ["...

Jaywoods January 4, 2017 暂无评论

k8s部署jenkins

Jenkins部署 编写jenkins.yaml文件 kind: Namespace apiVersion: v1 metadata: name: jenkins --- kind: Deployment apiVersion: extensions/v1beta1 metadata: name: jenkins namespace: jenkins spec: re...

Jaywoods January 4, 2017 暂无评论