Skip to content

chore(dp): Remove apt packages version pinning in DP Dockerfiles#13769

Merged
xbend merged 1 commit intomagma:masterfrom
openEPC:dp-remove-apt-packages-pinning
Aug 29, 2022
Merged

chore(dp): Remove apt packages version pinning in DP Dockerfiles#13769
xbend merged 1 commit intomagma:masterfrom
openEPC:dp-remove-apt-packages-pinning

Conversation

@sklgromek
Copy link
Copy Markdown
Contributor

@sklgromek sklgromek commented Aug 29, 2022

Signed-off-by: Tomasz Gromowski [email protected]

Summary

To avoid dependency issues, when the base Docker image is updated, we shouldn't pin apt to a particular package version.

Test Plan

  • Check CI

Additional Information

  • This change is backwards-breaking

@sklgromek sklgromek requested review from a team and xbend August 29, 2022 11:55
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Aug 29, 2022
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: orc8r Orchestrator-related issue label Aug 29, 2022
FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

@github-actions
Copy link
Copy Markdown
Contributor

dp-workflow

14 tests   14 ✔️  2m 24s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 45971ef.

Copy link
Copy Markdown
Contributor

@xbend xbend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Ignoring hadolint remarks, hard pinning versions is ok, but we can reply on distro packaging here. Versions are not pinned/specified but those are system packages that should not change much within base release of the image.

@MagmaCIBot
Copy link
Copy Markdown

💚 All backports created successfully

Status Branch Result
v1.8

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

MagmaCIBot pushed a commit that referenced this pull request Aug 29, 2022
)

Signed-off-by: Tomasz Gromowski <[email protected]>

Signed-off-by: Tomasz Gromowski <[email protected]>
(cherry picked from commit 77260f2)
maxhbr pushed a commit that referenced this pull request Aug 30, 2022
) (#13776)

Signed-off-by: Tomasz Gromowski <[email protected]>

Signed-off-by: Tomasz Gromowski <[email protected]>
(cherry picked from commit 77260f2)

Co-authored-by: Tomasz Gromowski <[email protected]>
rsarwad pushed a commit to rsarwad/magma that referenced this pull request Sep 4, 2022
sklgromek added a commit to openEPC/magma that referenced this pull request Sep 15, 2022
jordanvrtanoski pushed a commit to jordanvrtanoski/magma that referenced this pull request Feb 8, 2023
…ma#13769) (magma#13776)

Signed-off-by: Tomasz Gromowski <[email protected]>

Signed-off-by: Tomasz Gromowski <[email protected]>
(cherry picked from commit 77260f2)

Co-authored-by: Tomasz Gromowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.8 candidate-for-backporting component: orc8r Orchestrator-related issue size/XS Denotes a PR that changes 0-9 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants