My Dockerfile and Jenkinsfile are currently set up like this.
Dockerfile:
FROM python:3.7
RUN pip install ec2instanceconnectcli
Jenkinsfile snippet:
stage('Initialize Docker'){
steps{
script{
def dockerHome = tool 'myDocker'
env.PATH = "${dockerHome}/bin:${env.PATH}"
}
}
}
stage('EC2 Connection'){
agent{
dockerfile true
}
steps{
withAWS(credentials: '********', region: 'us-east-2') {
sh 'mssh ************ --region us-east-2'
}
}
}
I am not sure why I am getting this error:
+ mssh ************ --region us-east-2
No user exists for uid 1000
Any suggestions would be greatly appreciated.