sandervanvugt / containers

35 stars 56 forks source link

Repo containers does not fit to video learning on O'Reilly Kubernetes #1

Open jogi-k opened 3 years ago

jogi-k commented 3 years ago

Just watching/learning on O'Reilly the Kubernetes-Training which tells you to clone containers from here. But the content seems to be quite different. Finally found the "original" content here: https://github.com/benyjaykay/sandervanvugt

It would be nice if repositories which are used in video learnings would not be changed...

parth995 commented 2 years ago

I have same issue. While cloning this repo seems below docker instruction is used but sander.repo file is empty which throws error while building docker image as below.

ADD ./sander.repo /etc/yum.repos.d/


Error ` [+] Building 2.9s (7/7) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 346B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/centos:latest 1.9s => [internal] load build context 0.0s => => transferring context: 32B 0.0s => [1/3] FROM docker.io/library/centos@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55b 0.0s => CACHED [2/3] ADD ./sander.repo /etc/yum.repos.d/ 0.0s => ERROR [3/3] RUN yum update -y && yum --assumeyes update && yum --assumeyes install bash nmap 1.0s

[3/3] RUN yum update -y && yum --assumeyes update && yum --assumeyes install bash nmap iproute && yum clean all:

7 0.900 CentOS Linux 8 - AppStream 76 B/s | 38 B 00:00

7 0.905 **Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

------** executor failed running [/bin/sh -c yum update -y && yum --assumeyes update && yum --assumeyes install bash nmap iproute && yum clean all]: exit code: 1

% cat sander.repo

repo

`

parth995 commented 2 years ago

@sandervanvugt , could you please have a look into this last two comments and assist ?