executing dockers as host

This commit is contained in:
Szakalakamaka
2020-09-01 11:52:52 +02:00
parent 72533c1a0c
commit 3f4e9ccec7
2 changed files with 5 additions and 4 deletions

7
Jenkinsfile vendored
View File

@@ -1,10 +1,9 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh "docker-compose build"
stage('docker-compose') {
steps {
sh "docker-compose build"
}
}
stage('Deploy') {

View File

@@ -2,9 +2,11 @@ version: '3'
services:
redis-server:
image: 'redis'
network_mode: "host"
restart: "no"
klaus:
restart: "no"
network_mode: "host"
build:
context: .
dockerfile: Dockerfile