kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.56k stars 535 forks source link

Book nor this site says that the source code needs to be downloaded #28

Open cemendes opened 4 years ago

cemendes commented 4 years ago

The book and/or this page needs to say that the source code needs to be downloaded. Otherwise, the build process fails with error: Removing intermediate container 8dd4b6c2b3be ---> d482ce3af5ca Step 11/15 : RUN build/build.sh ---> Running in 835b2b529591 /bin/sh: build/build.sh: not found

https://learning.oreilly.com/library/view/kubernetes-up-and/9781492046523/ch02.html

jastis77 commented 4 years ago

iam getting the issue even after cloning the repo to my local machine. I can see the build/build.sh file but docker build keeps throwing the error /bin/sh: build/build.sh: not found

jastis77 commented 4 years ago

The book and/or this page needs to say that the source code needs to be downloaded. Otherwise, the build process fails with error: Removing intermediate container 8dd4b6c2b3be ---> d482ce3af5ca Step 11/15 : RUN build/build.sh ---> Running in 835b2b529591 /bin/sh: build/build.sh: not found

https://learning.oreilly.com/library/view/kubernetes-up-and/9781492046523/ch02.html

were you able to successfully build? can you share the steps? i cloned the repo and from the context of C:/kuard, i ran the docker build but i still get the same error can you please advise?

o-90 commented 4 years ago

Related #30

rainleander commented 3 years ago

My environment:

Commands I ran: $ git clone https://github.com/kubernetes-up-and-running/kuard.git $ cd kuard $ docker build -t kuard .

And it works!

Agreed, though, in Chapter 2: Creating and Running Containers, it's not clear that you need to download the entire repository to get this to work; it only mentions the Dockerfile and then:


You can build and run this image with the following commands: $ docker build -t kuard . $ docker run -rm -p 8000:8000 kuard

Which implies that you can run those commands with only the Dockerfile.