1 前言 良好的代码习惯是一个优秀程序员应该具备的品质,但靠人的习惯与记忆来保证代码质量,始终不是一件靠谱的事.在计算机行业应该深知,只要是人为的,都会有操作风险.本文讲解如何通过Docker搭建代码检测平台SonarQube,并使用它来检测maven项目的代码. 2 Docker安装SonarQube 2.1 安装 通过Docker安装,方便快捷,不需要时直接删掉容器和镜像就好了. # 拉取Sonar镜像 docker pull sonarqube:8.3.1-community # 运行实例…
by Kenny Bastani Sunday, July 12, 2015 转自:http://www.kennybastani.com/2015/07/spring-cloud-docker-microservices.html This blog series will introduce you to some of the foundational concepts of building a microservice-based platform using Spring Cloud…
用Spring Cloud和Docker搭建微服务平台 This blog series will introduce you to some of the foundational concepts of building a microservice-based platform using Spring Cloud and Docker. 本系列文章将向你介绍一些有关使用Spring Cloud和Docker搭建微服务平台的基本概念. What is Spring Cloud? Sprin…
开始搭建 1.获取 postgresql 的镜像 $ docker pull postgres 2.启动 postgresql $ docker run --name db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d postgres 3.获取 sonarqube 的镜像 $ docker pull sonarqube 4.启动 sonarqube $ docker run --name sq --link db -e SONARQU…
SonarQube是管理代码质量一个开放平台,可以快速的定位代码中潜在的或者明显的错误,下面将会介绍一下这个工具的安装.配置以及使用. 准备工作: 1.jdk(不再介绍) 2.sonarqube:http://www.sonarqube.org/downloads/ 3.SonarQube+Scanner:https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-2.5.zip 4.mysql数据库(…
整理了一下文档  今天来构建mariadb 主机还是 centos  172.16.0.200 构建第二个images   直接shell.sh 完成  #!/bin/bash echo "----------------demo------------------" #--------------------new--mysql--dockerfile---------- if [[ ! -e ./Dockerfile ]]; then cat > ./Dockerfile &…
说明:  我一次build 完 所以images 包 有1G多   可分层build   bash 环境一层   应用程序及启动脚本(shell.sh) 一层 步骤:           1     基础 Images 镜像  sairamnusetty/centos6.8-python2.7.13            2    从github  上 git  proect 下来并修改配置文件         3    运行  install-project.sh  自动下载  git  pr…
整体结构如下图   先来在 172.16.0.200 安装docker-ce (新)或 docker-io(旧)      0: Docker-ce  (新版本  Docker version 17.09.0-ce) 1. 卸载老版本的 docker 及其相关依赖sudo yum remove docker docker-common container-selinux docker-selinux docker-engine ​ 2. 安装 yum-utils,它提供了 yum-config-…
1.自定义网络 [root@linux-docker01 ~]# docker network create lnmp 67e7e0736b2c58f8f81eed50130803b34be0583f0fc54c2d43459f80617b5730 2.创建Mysql数据库容器 [root@linux-docker01 ~]# docker run -itd \ > --name lnmp_mysql \ > --net lnmp \ > -p 3306:3306 \ > --mo…
准备好镜像 1.创建网络 docker network create lnmp 测试环境需删除全部之前起的容器 docker rm -f $(docker ps -a |awk '{print $1}'|sed '1d') 2.创建MySQL容器 docker run -d --restart=always \ --name lnmp_mysql \ --net lnmp \ --mount src=mysql-vol,dst=/var/lib/mysql \ -e MYSQL_ROOT_PAS…