Coder Social home page Coder Social logo

Comments (10)

blbradley avatar blbradley commented on July 26, 2024 2

Starting a new formula for Docker CE could be wise. Thoughts?

from docker-formula.

myoung34 avatar myoung34 commented on July 26, 2024 1

out with the old in with the new

from docker-formula.

blueyed avatar blueyed commented on July 26, 2024 1

Has anything happened with regard to supporting docker-ce from download.docker.com?
Looks like there should be something like use_download_repo (or use_new(er)_repo) with https://github.com/lock8/docker-formula/blob/f9ae050ec9792dedf2a8108c6df80c153545fd68/docker/init.sls#L19-L33.

from docker-formula.

blbradley avatar blbradley commented on July 26, 2024

Can you provide details of the errors you are getting on CentOS 7?

from docker-formula.

msciciel avatar msciciel commented on July 26, 2024

Ofcourse I can provide details.

The first problem is that formula always enable old docker repository and it should be at least a option to disable this behavior. We are using red hat satellite/spacewalk for local mirroring of packages so we don't want to fetch packages from external mirrors.

The second problem connected with first problem is that formula is using old repository and after release of docker community/enterprise edition new repository is under: https://download.docker.com/linux/centos/7/x86_64/stable/.

The third problem is that formula is not working with new repository propably because of fact that docker-engine package was renamed to docker-ce:

----------
          ID: docker package
    Function: pkg.latest
        Name: docker-engine
      Result: False
     Comment: No information found for 'docker-engine'.
     Started: 09:35:06.809329
    Duration: 2603.389 ms
     Changes:   
----------
          ID: docker-service
    Function: service.running
        Name: docker
      Result: False
     Comment: One or more requisite failed: docker.docker package
     Started: 
    Duration: 
     Changes:   

The fourth problem for consideration is that in my opinion pkg.latest should not be the default state for package installation. Maybe it could be better to use pkg.installed and have a option to enable auto-update ?

from docker-formula.

morsik avatar morsik commented on July 26, 2024

I found that there is lookup for Docker package, far away from good Salt conventions:

{% set pkg = salt['pillar.get']('docker-pkg:lookup', default={}, merge=True) %}

This should be inside docker:lookup called something like name or pkg_name or something similar like in other formulas like that.

from docker-formula.

morsik avatar morsik commented on July 26, 2024

Oh wait… this pkg is used nowhere!

from docker-formula.

blbradley avatar blbradley commented on July 26, 2024

This formula does use Docker's upstream repo if you set the version pillar to a newer version.

This formula does not yet support the new style of CE/EE package names. This is true right now for any OS. We should leave this issue to that problem only. Please open up separate issues the other items.

I think this is a great time to talk about conventions. In an exert from the linked page about MySQL Formula, it shows that formula using a map.jinja. However, in [mysql-formula], at this moment, there is no map.jinja. It uses a defaults.yaml and imports that across the formula. This poses a question: What is the convention?

SaltStack Inc has given the community a guide. But it is just that: a guide. The conventions depend on the people that maintain and submit to a particular formula.

@morsik pkg in map.jinja is merged into the defaults that are imported into other states. It is used for things like changing the docker Python package versions and configuring arguments to the Docker sysvinit or upstart service. You may think that it is used to change the package name, but that is not the case.

from docker-formula.

msciciel avatar msciciel commented on July 26, 2024

If pkg name could be moved to map.jinja with ability to override it with pillar key similar to docker:lookup:pkg then it should work with docker community edition.

from docker-formula.

morsik avatar morsik commented on July 26, 2024

@blbradley: doesn't make any sence since Docker CE and old Docker all fully compatible with each other. They are have just different repos and names.

from docker-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.