jenkins-as-code
jenkins-as-code copied to clipboard
Errors with the Make setup and Dockerfile Build
Hi, I am trying this experiment on a GCP Compute VM running Ubuntu 22.04 LTS , and starting from the first step after installing Docker and Make.
I figured I might be able to get it going on one VM and then access it using Chrome in an Ubuntu Desktop on a VM in the same subnet. However, the best scenario for me would just expose it temporarily to the internet from my own IP using a VPC firewall rule.
~/jenkins-as-code$ make get-tools-linux
# TODO: verify checksums ..
curl -Lo bin/minikube https://storage.googleapis.com/minikube/releases/v1.0.0/minikube-linux-amd64 && chmod +x bin/minikube
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38.2M 100 38.2M 0 0 74.6M 0 --:--:-- --:--:-- --:--:-- 74.7M
curl -Lo bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl && chmod +x bin/kubectl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 41.1M 100 41.1M 0 0 89.4M 0 --:--:-- --:--:-- --:--:-- 89.3M
curl -L https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz | tar -xz -C bin/ && mv bin/linux-amd64/helm bin/ && rm -r bin/linux-amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 298 100 298 0 0 2604 0 --:--:-- --:--:-- --:--:-- 2614
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make: *** [Makefile:13: get-tools-linux] Error 2
I've also tried populating all of the secret files in the requested locations and trying to simply build the docker file but I end up with the following issue when it tries to install the plugins:
This is the entire Docker build output with errors: https://github.com/bgpanw/temp/blob/main/dockerbuildsession.log
Hi :wave:
Thank you for the info. :bow: The codebase is roughly 4 years old by now. Quite likely some of the links in the Makefile are outdated.
HI Thanks for your reply. I made one update with errors in the Docker build . I figured I'd at least try creating all of the secrets and build the image to deploy in a regular GKE cluster but ended up with the errors shown in my updated comment.
Please have a look at the link / file I uploaded to a temporary repo with the Dockerbuild output. I've added it to my original post.
Sorry I do not have time to debug this for you. The only hint I can offer is that probably the links are not up-to-date anymore. You can try to pull newer versions / update the links and see if that works. Hope that helps!
I completely understand! Thanks again and I'll make use of what I can 👍