Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions scripts/release/build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ pipeline {
agent {
dockerfile {
filename 'scripts/release/common/docker/setup.Dockerfile'
/*
args '-v /etc/passwd:/etc/passwd'
*/
args '-u root'
}
}

Expand Down
17 changes: 14 additions & 3 deletions scripts/release/common/docker/setup.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Note that we're installing `awscli` from pip rather than from the apt repository because of
# the following error message:
#
# upload failed: pkg/2.0.63803/build_status_dev_2.0.63803.asc.gz to s3://{upload_location}/build_status_dev_2.0.63803.asc.gz seek() takes 2 positional arguments but 3 were given
#
# Note that the error only seems to occur when there is a file to upload with zero bytes,
# but just to be safe we'll still use pip to download and install.
#
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869194
# https://github.com/boto/s3transfer/pull/102

FROM ubuntu:18.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y awscli jq ssh
#RUN adduser --uid $(grep jenkins /etc/passwd | awk -F: '{ print $3 }') ubuntu
RUN adduser --uid 111 ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y jq git python python-pip ssh && \
pip install awscli