Skip to content

Commit 4238b99

Browse files
committed
Copy repo to volume
1 parent b33e83e commit 4238b99

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

CI/Jenkinsfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ node {
99
sh 'docker volume create vol-in'
1010
sh 'docker volume create vol-out'
1111
sh 'docker volume ls'
12-
// sh 'docker volume inspect vol-in'
13-
// sh 'ls $HOME'
14-
15-
docker.image('node').inside {
16-
sh 'make test'
17-
}
18-
// sh 'touch /var/lib/docker/volumes/vol-in/_data/test.txt'
19-
// sh 'ls /var/lib/docker/volumes/vol-in/_data'
12+
13+
sh 'docker run -d --rm --name dummy -v vol-in:/vi alpine tail -f /dev/null'
14+
sh 'docker cp . dummy:/vi'
15+
sh 'docker stop dummy'
2016
}
2117

2218
stage('Build image') {

0 commit comments

Comments
 (0)