1

I Have this Dockerfile and I want build container (based on Ubuntu) and install on him Jenkins.

FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y --no-install-recommends \
  gnupg2 \
  vim \
  wget \
  autoconf \
  bison \
  build-essential \
  ca-certificates \
  gzip \
  libreadline-dev \
  patch \
  pkg-config \
  sed \
  zlib1g-dev \
  python3 \
  python3-pip

RUN apt-get update
RUN apt-get install -y apt-transport-https
RUN wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -
RUN echo "deb https://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y jenkins

Building logs:

Step 1/9 : FROM ubuntu:18.04
 ---> 4c108a37151f
Step 2/9 : RUN apt-get update
 ---> Using cache
 ---> 313f3849a266
Step 3/9 : RUN apt-get install -y --no-install-recommends   gnupg2   vim   wget   autoconf   bison   build-essential   ca-certificates   gzip   libreadline-dev   patch   pkg-config   sed   zlib1g-dev   python3   python3-pip
 ---> Using cache
 ---> b78fafafc9b1
Step 4/9 : RUN apt-get update
 ---> Using cache
 ---> 14b35ed46350
Step 5/9 : RUN apt-get install -y apt-transport-https
 ---> Using cache
 ---> 2cf717662d06
Step 6/9 : RUN wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -
 ---> Using cache
 ---> 02d72f97d2e8
Step 7/9 : RUN echo "deb https://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
 ---> Using cache
 ---> a5764e9ec9f9
Step 8/9 : RUN apt-get update
 ---> Running in c1c833bd5692
Ign:1 https://pkg.jenkins.io/debian-stable binary/ InRelease
Err:2 https://pkg.jenkins.io/debian-stable binary/ Release
  Could not handshake: An unexpected TLS packet was received. [IP: 10.3.115.222 8080]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists...
E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100

I completly don't know how resolve this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.