mirror of
https://github.com/docker/getting-started-app.git
synced 2024-12-22 23:30:50 -05:00
25 lines
563 B
Plaintext
25 lines
563 B
Plaintext
|
pipeline {
|
||
|
agent any
|
||
|
stages {
|
||
|
stage('Clone Repository') {
|
||
|
steps {
|
||
|
git 'https://github.com/docker/getting-started-app.git'
|
||
|
}
|
||
|
}
|
||
|
stage('Build Docker Image') {
|
||
|
steps {
|
||
|
script {
|
||
|
sh 'docker build -t todo-app .'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
stage('Run Docker Container') {
|
||
|
steps {
|
||
|
script {
|
||
|
sh 'docker run -d -p 3000:3000 todo-app'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|