Skip to content

Commit

Permalink
login dockerhub before pull (#8314)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jan 4, 2021
1 parent 08fc5bb commit caf5264
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ before_install:
# set python 3.6.3 as default
- source ~/virtualenv/python3.6/bin/activate
# to run petstore server locally via docker
- echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin;
- docker pull swaggerapi/petstore
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
- docker ps -a
Expand Down

0 comments on commit caf5264

Please sign in to comment.