tinkerbell / hook

In-memory Operating System Installation Environment for Executing Tinkerbell Workflows
Apache License 2.0
102 stars 49 forks source link

Hook doesn't create required files/folder for docker trusted certificates #159

Closed Paulius0112 closed 1 year ago

Paulius0112 commented 1 year ago

We are trying to build according to https://anywhere.eks.amazonaws.com/docs/reference/baremetal/bare-custom-hookos/ as well as latest Hook version v.0.7.0. We updated bootkit and hook-docker folders with our custom functionality

fmt.Println("Create docker cert directory - debug")
err = os.MkdirAll("/etc/docker/certs.d/<OUR IP>", os.ModeDir)
if err != nil {
        fmt.Println("Error creating dir")
        panic(err)
}

The code according to the logs inside IPXE machine suggest, that everything was executed correctly. However, no such directory exists on the host itself.

Would it be possible to get more information regarding how to add a trusted docker certificate so that we could authenticate to our local docker registry.

jacobweinstock commented 1 year ago

Hey @Paulius0112. Are you wanting to add registry certificates to Hook at build time or runtime? Also, have you tried with the latest commit? We've made quite a few changes since the v0.7.0 release.

Paulius0112 commented 1 year ago

We are trying to add on the build time, as it will be always the same cert. What does the latest commit implement so I could have a look?