mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
Added swarm on docker-machine example.
This commit is contained in:
parent
a198382c06
commit
49d4c5800f
4 changed files with 33 additions and 0 deletions
|
@ -37,6 +37,7 @@ module.exports = function (grunt) {
|
|||
]);
|
||||
grunt.registerTask('test-watch', ['karma:watch']);
|
||||
grunt.registerTask('run', ['if:binaryNotExist', 'build', 'shell:buildImage', 'shell:run']);
|
||||
grunt.registerTask('runSwarm', ['if:binaryNotExist', 'build', 'shell:buildImage', 'shell:runSwarm']);
|
||||
grunt.registerTask('run-dev', ['if:binaryNotExist', 'shell:buildImage', 'shell:run', 'watch:build']);
|
||||
|
||||
// Print a timestamp (useful for when watching)
|
||||
|
@ -259,6 +260,13 @@ module.exports = function (grunt) {
|
|||
'docker run --privileged -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --name dockerui dockerui'
|
||||
].join(';')
|
||||
},
|
||||
runSwarm: {
|
||||
command: [
|
||||
'docker stop dockerui',
|
||||
'docker rm dockerui',
|
||||
'docker run --net=host -d --name dockerui dockerui -e http://127.0.0.1:2374'
|
||||
].join(';')
|
||||
},
|
||||
cleanImages: {
|
||||
command: 'docker rmi $(docker images -q -f dangling=true)'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue