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.

19 lines
825 B

  1. FROM ubuntu:16.04
  2. RUN mkdir /kubespray
  3. WORKDIR /kubespray
  4. RUN apt update -y && \
  5. apt install -y \
  6. libssl-dev python-dev sshpass apt-transport-https jq \
  7. ca-certificates curl gnupg2 software-properties-common python-pip
  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/python -m pip install pip -U && /usr/bin/python -m pip install -r tests/requirements.txt && python -m pip install -r requirements.txt
  16. RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.3/bin/linux/amd64/kubectl \
  17. && chmod a+x kubectl && cp kubectl /usr/local/bin/kubectl