-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
31 lines (23 loc) · 969 Bytes
/
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
FROM golang:1.22
# Copy the repository files
COPY . /tmp/distributed-tracing-qe
WORKDIR /tmp
# Set the Go path and Go cache environment variables
ENV GOPATH=/tmp/go
ENV GOBIN=/tmp/go/bin
ENV GOCACHE=/tmp/.cache/go-build
ENV PATH=$PATH:$GOBIN
# Create the /tmp/go/bin and build cache directories, and grant read and write permissions to all users
RUN mkdir -p /tmp/go/bin $GOCACHE \
&& chmod -R 777 /tmp/go/bin $GOPATH $GOCACHE
# Install dependencies required by test cases and debugging
RUN apt-get update && apt-get install -y jq vim libreadline-dev
# Install Chainsaw e2e testing tool
RUN go install github.com/kyverno/[email protected]
# Install kubectl and oc
RUN curl -LO https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/openshift-client-linux.tar.gz \
&& tar -xzf openshift-client-linux.tar.gz \
&& chmod +x oc kubectl \
&& mv oc kubectl /usr/local/bin/
# Set the working directory
WORKDIR /tmp/distributed-tracing-qe