File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
tools/curl_install_tester_docker_setup Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 7
7
include :
8
8
- stage : K8s
9
9
before_script :
10
- - |
11
10
# Download and install go
12
11
- wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
13
12
- tar -xvf go1.13.linux-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ require "../constants.cr"
12
12
# TODO Move constants out
13
13
# TODO put these functions into a module
14
14
15
+ # TODO: error with proper exit_code when any of these don't exist and ask user to run setup command
15
16
CNF_DIR = " cnfs"
16
17
CONFIG_FILE = " cnf-conformance.yml"
17
18
TOOLS_DIR = " tools"
Original file line number Diff line number Diff line change 1
- FROM ubuntu
1
+ FROM ubuntu as base
2
2
3
- ARG VERSION =v3.2.4
4
- ARG FILENAME=helm-${VERSION }-linux-amd64.tar.gz
3
+ ARG HELM_VERSION =v3.2.4
4
+ ARG FILENAME=helm-${HELM_VERSION }-linux-amd64.tar.gz
5
5
ARG KUBECTL=v1.18.4
6
6
7
- RUN apt update && apt install -y wget curl
7
+ RUN apt update && apt install -y wget curl git
8
8
9
9
RUN curl -L https://get.helm.sh/${FILENAME} | tar zxv -C /tmp
10
10
RUN mv /tmp/linux-amd64/helm /usr/local/bin/
@@ -14,4 +14,11 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBECTL/
14
14
RUN mv ./kubectl /usr/local/bin/kubectl
15
15
RUN chmod +x /usr/local/bin/kubectl
16
16
17
- WORKDIR /cnf-conformance
17
+ WORKDIR /test_workspace
18
+
19
+ from base as ci_test
20
+ # add binary AND ONLY the binary in this container so we can fail if binary is broken without the rest of the source
21
+ COPY cnf-conformance .
22
+ RUN ./cnf-conformance setup verbose
23
+ RUN wget https://raw.githubusercontent.com/cncf/cnf-conformance/master/example-cnfs/coredns/cnf-conformance.yml
24
+ RUN ./cnf-conformance ip_addresses cnf-config=./cnf-conformance.yml verbose
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ Curl install tester is a docker setup designed to
13
13
# in the curl_install_tester_docker_setup folder
14
14
# because the dockerfile is there
15
15
16
- docker build -t curl_install_tester_docker_setup .
16
+ docker build -t curl_install_tester_docker_setup --target base .
17
17
18
- docker run --rm -it curl_install_tester_docker_setup
18
+ docker run --rm -it curl_install_tester_docker_setup
19
19
20
20
source <(curl https://raw.githubusercontent.com/cncf/cnf-conformance/master/curl_install.sh)
21
21
You can’t perform that action at this time.
0 commit comments