executing dockers as host
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -1,10 +1,9 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('docker-compose') {
|
||||||
steps {
|
steps {
|
||||||
sh "docker-compose build"
|
sh "docker-compose build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
|||||||
@@ -2,9 +2,11 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
redis-server:
|
redis-server:
|
||||||
image: 'redis'
|
image: 'redis'
|
||||||
|
network_mode: "host"
|
||||||
restart: "no"
|
restart: "no"
|
||||||
klaus:
|
klaus:
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
network_mode: "host"
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|||||||
Reference in New Issue
Block a user