Yesterday, I found an unexpected bug while deploying my app. I have tried
pip install awscli --upgrade --user
pip uninstall awscli
pip install awscli --upgrade --user
pip install --user 'awscli==1.19.56'
pip install --user awscli botocore==1.8.42
but nothing works for me. if someone has found any problem in code , it is highly appreciated to share with me, I have attached the scripts and logs
thanks in advance.
.travis.yml
:
deploy:
skip_cleanup: true
provider: script
script: bin/build/travis-upload-apidoc.sh && bin/build/travis-build-docker-image.sh
on:
tags: true
Log:
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.1.0 documentation.
InsecurePlatformWarning
Could not find a version that satisfies the requirement awscli (from versions: )
No matching distribution found for awscli
bin/build/travis-upload-apidoc.sh
:
docker --version
if [ "$TRAVIS" = "true" ]
then
pip install --user awscli
export PATH=$PATH:$HOME/.local/bin
fi
aws ecr get-login --region ${AWS_REGION} --no-include-email
docker build -t ${DOCKER_REPO}:${DOCKER_TAG} .
docker tag ${DOCKER_REPO}:${DOCKER_TAG} ${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}
docker push ${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}
cd devops/docker/neo4j
docker build -t ${DOCKER_REPO_NEO4J}:${DOCKER_TAG} .
docker tag ${DOCKER_REPO_NEO4J}:${DOCKER_TAG} ${DOCKER_REGISTRY}/${DOCKER_REPO_NEO4J}:${DOCKER_TAG}
docker push ${DOCKER_REGISTRY}/${DOCKER_REPO_NEO4J}:${DOCKER_TAG}