Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Create a Docker image from scratch #54

Open
gtkramer opened this issue Nov 1, 2019 · 3 comments
Open

Create a Docker image from scratch #54

gtkramer opened this issue Nov 1, 2019 · 3 comments
Assignees
Labels
effort 3 Medium level of effort required
Milestone

Comments

@gtkramer
Copy link
Contributor

gtkramer commented Nov 1, 2019

A docker folder should be made in the config repository containing folders for each image name. Each image folder name should have the following files inside of it:

  • Dockerfile
  • bundles (contains one bundle name per line in the file)
  • contact (one line in the format ",," without quotes

This data should be used as input to a process that builds a Docker image from scratch. This process should use the following swupd command to create the build context:

sudo -E swupd os-install --wait-for-scripts --path="$CHROOT_DIR" --version="$VER" --statedir="$STATE_DIR" --format="$(< "$SWUPDWEBDIR/$VER/format")" --url=file://"$SWUPDWEBDIR" --no-boot-update --bundles "$(cat "$TYPE_BUNDLE_FILE" | tr '\n' ',' | sed 's/,$//')"
@gtkramer gtkramer added this to the Up-to-pair milestone Nov 1, 2019
@vinaypotluri vinaypotluri self-assigned this Nov 20, 2019
@gtkramer
Copy link
Contributor Author

We may want to consider implementing this in a way that closes clearlinux/docker-brew-clearlinux#2

@gtkramer gtkramer added effort 1 Low level of effort required effort 3 Medium level of effort required effort 5 High level of effort required and removed effort 1 Low level of effort required effort 5 High level of effort required labels Dec 20, 2019
@sysarcher
Copy link

@gtkramer The issue you mentioned came up on my notifications today because someone commented there. I noticed that the repo size is almost 2Gigs now.

We shouldn't need to download 2Gigs for such a small repo. Maybe consider using LFS? (https://help.github.com/en/github/managing-large-files/versioning-large-files)

Best would be to use the ADD keyword with a URL to where the base.tar.xz is found.

@gtkramer
Copy link
Contributor Author

gtkramer commented Mar 4, 2020

I think we want to move away from storing the base.tar.xz in a git repo all together, since there's not a compelling reason for us to do this except for out of convenience for our build and publishing process. As you recommended, we'd probably do this using the ADD keyword and then publishing a docker image alongside our other images that sit on our CDN. We'd then remove the base.tar.xz from our git repo and make sure the history of it is gone too so the repo clone is pretty small and fast.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort 3 Medium level of effort required
Projects
None yet
Development

No branches or pull requests

3 participants