You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
835 B

  1. FROM ubuntu:18.04
  2. RUN mkdir /kubespray
  3. WORKDIR /kubespray
  4. RUN apt update -y && \
  5. apt install -y \
  6. libssl-dev python3-dev sshpass apt-transport-https jq \
  7. ca-certificates curl gnupg2 software-properties-common python3-pip rsync
  8. RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
  9. add-apt-repository \
  10. "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  11. $(lsb_release -cs) \
  12. stable" \
  13. && apt update -y && apt-get install docker-ce -y
  14. COPY . .
  15. RUN /usr/bin/python3 -m pip install pip -U && /usr/bin/python3 -m pip install -r tests/requirements.txt && python3 -m pip install -r requirements.txt
  16. RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.4/bin/linux/amd64/kubectl \
  17. && chmod a+x kubectl && cp kubectl /usr/local/bin/kubectl