This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bombardier $COMMAND |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.8 | |
RUN go get -u github.com/codesenberg/bombardier | |
COPY entrypoint.sh . | |
RUN chmod +x entrypoint.sh | |
ENTRYPOINT [ "./entrypoint.sh" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
sample-console-app: | |
image: sample-console-app | |
build: | |
network: host | |
context: . | |
args: | |
PROJECT_VERSION: 1 | |
dockerfile: Sample.Console.App/Dockerfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.1-sdk AS build | |
ARG PROJECT_VERSION | |
ENV DOTNET_CLI_TELEMETRY_OPTOUT = 1 | |
WORKDIR /src | |
RUN apt-get update && apt-get install -y \ | |
openjdk-8-jre-headless | |
RUN apt-get clean | |
COPY . . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker network create -d bridge sonarqubenet | |
docker run --name sonar-postgres -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d -p 5432:5432 --net sonarqubenet postgres | |
docker run --name sonarqube -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-postgres:5432/sonar -d --net sonarqubenet sonarqube:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
sonar-postgres: | |
image: postgres | |
container_name: sonar-postgres | |
environment: | |
POSTGRES_USER: sonar | |
POSTGRES_PASSWORD: sonar | |
ports: | |
- "5432:5432" |