This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 26 Sep, 2017 2 commits
  2. 20 Sep, 2017 3 commits
    • Lasse Dalegaard's avatar
      Expose rkt DriverNetwork · bdfd8d88
      Lasse Dalegaard authored
      Currently the rkt driver does not expose a DriverNetwork instance after
      starting the container, which means that address_mode = 'driver' does
      not work.
      
      To get the container network information, we can call `rkt status` on
      the UUID of the container and grab the container IP from there.
      
      For the port map, we need to grab the pod manifest as it will tell us
      which ports the container exposes. We then cross-reference the
      configured port name with the container port names, and use that to
      create a correct port mapping.
      
      To avoid doing a (bad) reimplementation of the appc schema(which rkt
      uses for its manifest) and rkt apis, we pull those in as vendored
      dependencies. The versions used are the same ones that rkt use in their
      glide dependency configuration for version 1.28.0.
      bdfd8d88
    • Lasse Dalegaard's avatar
      Use rkt prepare + run-prepared instead of run. · 3dafacdd
      Lasse Dalegaard authored
      The rkt driver currently executes run and asks that the pod UUID is
      written to a file that is then polled for changes for up to five
      seconds. Many container fetches will take longer than this, so this
      method will often not be able to track the pod UUID reliably.
      
      To avoid this problem, rkt allows pods to be first prepared, which will
      return their UUID, and then run as a second invocation.
      
      Here we convert the rkt driver's Start method to use this method
      instead. This way, the UUID will always be tracked correctly.
      3dafacdd
    • Michael Schurter's avatar
      Merge pull request #3253 from hashicorp/b-make-shellcheck-happy · a1e08240
      Michael Schurter authored
      Fix shellcheck's complaints about find loop
      a1e08240
  3. 19 Sep, 2017 17 commits
  4. 18 Sep, 2017 1 commit
  5. 17 Sep, 2017 17 commits