You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.6 KiB

  1. # Pinned Package Updater
  2. Pinned Package Updater (PPU) is a tool for managing pinned packages installed with package managers in a Dockerfile
  3. manifest. The goal of this tool is to reduce the administrative burden of keeping packages up to date with upstream
  4. security releases by offering an automatic mechanism for checking for new security releases and patching the existing
  5. Dockerfile manifest with those new versions.
  6. The integration into the CI/CD is left up to the user, but can be as simple as committing the changes and opening an MR.
  7. ## Table Of Contents
  8. 1. [Usage](#usage)
  9. 2. [Building](#building)
  10. 3. [Contributing](#contributing)
  11. 4. [License](#license)
  12. ## Usage
  13. ### Standalone Usage
  14. The default behavior for the tool is to operate in a standalone mode. In this mode the tool is responsible for parsing
  15. the Dockerfile, fetching the upstream package manager resources, identifying the upgrades available, and applying those
  16. upgrades. An alternative [distributed mode](#distributed-usage) is available to remove the upstream package resource
  17. caching and version upgrade determination logic.
  18. ```bash
  19. pinned-package-updater check
  20. pinned-package-updater update
  21. ```
  22. ### Distributed Usage
  23. In distributed mode the tool relies on an external deployment of PPU that is running in ***serve*** mode
  24. `pinned-package-updater serve`. To cache the upstream package manager resources and handle the upgrade check logic. In
  25. this mode much of the work can be cached between requests and the overhead of checking for pinned version updates is
  26. significantly reduced.
  27. The tool running in this mode will revert to standalone mode if the upstream service is unavailable.
  28. ```bash
  29. pinned-package-updater --remote <address of the upstream service> check
  30. pinned-package-updater --remote <address of the upstream service> update
  31. ```
  32. ## Building
  33. To build `pinned-package-updater`, run `go build`
  34. ## Contributing
  35. I am not currently accepting outside contributions.
  36. ## License
  37. Copyright © 2021 Drew Short <warricks@sothr.com>
  38. ```
  39. Licensed under the Apache License, Version 2.0 (the "License");
  40. you may not use this file except in compliance with the License.
  41. You may obtain a copy of the License at
  42. http://www.apache.org/licenses/LICENSE-2.0
  43. Unless required by applicable law or agreed to in writing, software
  44. distributed under the License is distributed on an "AS IS" BASIS,
  45. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  46. See the License for the specific language governing permissions and
  47. limitations under the License.
  48. ```
  49. A copy of the license can also be viewed at [LICENSE](LICENSE)