-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CDAP-19300] Added Containers Injection, added Dockerfile.test and up…
…dated the README
- Loading branch information
1 parent
21cf8d0
commit 3e2c1a8
Showing
20 changed files
with
1,830 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Build the manager binary | ||
FROM golang:1.16 as tester | ||
|
||
ENV version 1.0.8 | ||
ENV arch amd64 | ||
|
||
# Copy everything in the go src | ||
WORKDIR /go/src/cdap.io/cdap-operator | ||
COPY ./ ./ | ||
|
||
# Install Kubebuilder | ||
RUN curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_linux_${arch}.tar.gz" && \ | ||
tar -zxvf kubebuilder_${version}_linux_${arch}.tar.gz && \ | ||
mv kubebuilder_${version}_linux_${arch} /usr/local/kubebuilder && \ | ||
cp /usr/local/kubebuilder/bin/* /usr/local/bin | ||
|
||
# Install setup-envtest | ||
RUN go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
|
||
# download envtest 1.19.x for kubebuilder and to set KUBEBUILDER_ASSETS environment variable | ||
RUN $(go env GOPATH)/bin/setup-envtest use -p env 1.19.x > /tmp/setup_envtest.sh && \ | ||
eval `$(go env GOPATH)/bin/setup-envtest use -p env 1.19.x` && \ | ||
rm /tmp/setup_envtest.sh | ||
|
||
CMD make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.