OpenOSOrg / openos

6 stars 9 forks source link

setup for container #6

Open okrieg opened 1 year ago

okrieg commented 1 year ago

Lets use the email for the org set up to publish container, can you walk me through that? Then we want to get it published in the image registry, and available for the next course.

ajamias commented 1 year ago
  1. Create an account for Quay.io, this is the registry where your images will be stored. In this case, the account is for openosorg. Also, make sure that the Docker Desktop daemon is downloaded and running.
  2. Make your modifications to the base/existing image in the containers folder. 2a. "ope_book_registry" file contains your registry that will hold your image, in this case, it is quay.io 2b. "ope_book_user" file contains the username used for the quay.io account, in this case, it is openosorg 2c. "ope_book" file contains the book name, in this case, it is openos 2d. "customization_name" file contains the tag of the image you are currently building
  3. In the container folder, type "make build" to build the image. This will take around 10+ mins
  4. Type "make push" to push the image to quay.io. When this is done, you can log into the quay account and see a repository that takes the form of "/". Click on that repository, and then the tags button to view all of the images with different tags (right now only one will appear).

If you want to use the image in Docker Desktop, use the command: docker pull //:, so in this case, docker pull quay.io/openosorg/openos:latest (or something similar).

If you want to push the image to OpenShift's set of images, I found a useful FAQ here that shows that we can just import the image from quay.io.