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

Add version bumping script for packages #1

Closed
6 tasks done
victorpopkov opened this issue Oct 20, 2024 · 0 comments · Fixed by #4
Closed
6 tasks done

Add version bumping script for packages #1

victorpopkov opened this issue Oct 20, 2024 · 0 comments · Fixed by #4
Assignees
Labels
enhancement New feature or request hacktoberfest Hacktoberfest 2024

Comments

@victorpopkov
Copy link
Member

victorpopkov commented Oct 20, 2024

Problem

Updating package versions in our Docker images is currently a manual and time-consuming process. This can lead to inconsistencies and potential security vulnerabilities if packages are not regularly updated. Automating this process will help ensure that our images are always using the latest package versions and reduce the risk of human error.

Proposed solution

Implement a script named bump-packages.sh in the bin directory to automate the bumping of package versions in our Docker images. The script will:

  • Parse the Dockerfile to identify the packages that need to be updated.
  • Check for the latest available versions of these packages using a package manager or API.
  • Update the Dockerfile with the new package versions.
  • Include a -d or --dry-run option to preview changes before applying them.
  • Add a -c or --commit flag to apply the changes directly to the Dockerfile without requiring a dry run.

Progress

  • Create the bump-packages.sh script in the bin directory.
  • Implement logic to parse the Dockerfile and identify packages.
  • Use a package manager or API to check for the latest package versions.
  • Write logic to update the Dockerfile with new versions.
  • Implement a -d or --dry-run mode to show potential changes without applying them.
  • Add a -c or --commit flag to apply changes directly to the Dockerfile.
@victorpopkov victorpopkov added enhancement New feature or request hacktoberfest Hacktoberfest 2024 labels Oct 20, 2024
@victorpopkov victorpopkov self-assigned this Oct 20, 2024
victorpopkov added a commit that referenced this issue Oct 26, 2024
@victorpopkov victorpopkov linked a pull request Oct 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Hacktoberfest 2024
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant