خرید بک لینک

Vote count: 0

I am trying to run docker commands in Jenkits Shell

The command shell that I am trying is

# optional: record current versions of docker apps with each build
docker -v && docker-compose -v && docker-machine -v

# set-up: clean up any previous machine failures
docker-machine stop test || echo "nothing to stop" && 
docker-machine rm test   || echo "nothing to remove"

# use docker-machine to create and configure 'test' environment
# add a -D (debug) if having issues
docker-machine create --driver virtualbox test
eval "$(docker-machine env test)"

# use docker-compose to pull and build new images and containers
docker-compose -p jenkins up -d

# optional: list machines, images, and containers
docker-machine ls && docker images && docker ps -a

# wait for containers to fully start before tests fire up
sleep 30

# test services
sh tests.sh $(docker-machine ip test)

# tear down: stop and remove 'test' environment
#docker-machine stop test && docker-machine rm test

Someone Knows how setting up Jenkins to run docker Commands(docker, docker-compose and docker-machine)?

asked 49 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 11 فروردين 1395 ساعت: 8:29

صفحه بندی