Skip to content

Commit

Permalink
sonarqube with docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
VladyslavKurmaz committed Apr 2, 2017
1 parent fc65c13 commit c6078b0
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
25 changes: 25 additions & 0 deletions angular-php-cordova/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:17.04

RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
apt-utils \
apache2 \
supervisor \
libapache2-mod-php7.0 \
php7.0-mbstring \
php-xdebug \
php7.0-dom \
php7.0-zip \
php7.0-pdo \
php7.0-mysql \
bzip2 \
libfontconfig \
mysql-client \
curl \
wget \
rsync \
nodejs \
npm \
default-jre \
default-jdk \
maven \
mc
7 changes: 7 additions & 0 deletions angular-php-cordova/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

VER=1.0.0
docker build -t attlas:$VER .
docker run -tid --rm -p 80:80 -v /root/html:/var/www/html attlas:$VER
ATTLAS=$(docker ps | grep "attlas:$VER" | awk '{print $1}')
docker exec -tid $ATTLAS apache2ctl restart
19 changes: 19 additions & 0 deletions docker.install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce


curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions sonarqube/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '2'

services:
sonarqube:
image: sonarqube
ports:
- "9000:9000"
environment:
- SONARQUBE_JDBC_URL=jdbc:mysql://mysql:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
links:
- mysql
mysql:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=sonar
- MYSQL_ROOT_PASSWORD=sonar
- MYSQL_USER=sonar
- MYSQL_PASSWORD=sonar

0 comments on commit c6078b0

Please sign in to comment.