Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefer dexbuilds when building images #49

Open
briceburg opened this issue Nov 23, 2016 · 0 comments
Open

prefer dexbuilds when building images #49

briceburg opened this issue Nov 23, 2016 · 0 comments
Milestone

Comments

@briceburg
Copy link
Member

Lets prefer fetching dexbuilds images from the dockerhub versus building the source. This will speedup the experience of running an application for this first time. At least 99% of the time...

For this to work, we need to know when the published "dexbuild" is up to date w/ the working copy. One idea is to compare the sha of source tree to a sha published at build time ( could easily modify buildchain for this ), and we'd either host the published shas or see if docker registry supports comparison natively.

Followup issues can be made for buildchain, and this should be kept in mind for the near rewrite, esp. considering repository organization. Ideally we'd use cop and extend the application configuration to yml in order to deeply express source repositories. For instance, current sources.list layout:

core [email protected]:dockerland/dex-dockerfiles-core.git
extra [email protected]:dockerland/dex-dockerfiles-extra.git
batools [email protected]:BlueAcornInc/dex-batools.git

yaml layout

---

defaults:
  registry: dockerhub
  endpoint: dockerland

endpoints:
  - name: dockerland
    prefix: https://index.dockerland.org/
    urls:
      dexbuilds: dexbuilds-shasums.gz

# registry is consulted when downloading a "dexbuilds" variant
registries:
  - name: dockerhub
    prefix:
  - name: dockerland
    prefix: registry.dockerland.org/


# and now to the part we had scalar markup for...
sources:
  - name: core
    url: [email protected]:dockerland/dex-dockerfiles-core.git
    registry: dockerland
  - name: extra
    url: [email protected]:dockerland/dex-dockerfiles-extra.git
  - name: batools
    url: [email protected]:BlueAcornInc/dex-batools.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant