-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Test Runner is an image built to execute a set of unit and integration tests for
# the 'demo' project.
#
FROM python:3-buster
# Install dependencies
RUN apt-get update -y
RUN apt-get install -y jq git bash libcurl4 curl openssh-client
# Install pycurl
ENV PYCURL_SSL_LIBRARY=openssl
RUN apt-get install -y build-essential \
&& pip install pycurl
RUN pip install \
future \
jmespath \
jsonschema \
pyresttest \
shyaml
# TODO: (lkrcal) Enable these when kubectl tests are ready
# Set the Kubernetes version as found in the UCP Dashboard or API
# RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.11.5/bin/linux/amd64/kubectl && \
# chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl
RUN git clone https://github.com/sstephenson/bats.git && cd bats && ./install.sh /usr/local && cd .. && rm -rf bats
# Install iofogctl
RUN curl https://packagecloud.io/install/repositories/iofog/iofogctl/script.deb.sh | bash
RUN apt install iofogctl -y
RUN apt install iofogctl=3.0.0-alpha1 -y
RUN iofogctl version
# Make dir for test results
RUN mkdir -p /test-results
# Copy over all the files we need
COPY run.bash /
COPY tests /tests/
# Run our tests
ENTRYPOINT ["/bin/sh", "-c", "/run.bash"]