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

[main] minor cleanup now that this branch is for containerd 1.7+ #361

Merged
merged 5 commits into from
Jun 11, 2024

Conversation

thaJeztah
Copy link
Member

Now that the main branch is targeting containerd 1.7, there's some bits we can remove.

remove GOTOOLCHAIN env-vars

Both containerd and runc have been a module for some time now, and all
the branches we care about are a module, so there's no need to set the
GO111MODULE env-var.

remove some GOTOOLCHAIN=local env-vars

The official docker image now have GOTOOLCHAIN=local set by default,
so for stages where we build inside that image, we can remove it;

docker image inspect --format='{{ json .Config.Env }}' golang:1.21.11 | jq .
[
  "PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  "GOLANG_VERSION=1.21.11",
  "GOTOOLCHAIN=local",
  "GOPATH=/go"
]

disable btrfs for all CentOS/RHEL versions

Now that we no longer have to take 1.5/1.6 into account, we must
unconditionally disable brtfs for CentOS and RHEL, as no version
provides the Linux kernel headers for btrfs

rpm: remove version-constraint for container-selinux

This condition was added 5 Years ago in c08bd94
because older versions had some issues.

CentOS 7 currently installs 2:2.119.2-1.911c772.el7_8, and CentOS 9 stream
has 3:2.231.0-1.el9; both are higher than the minimum version specified,
so let's remove the condition.

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah self-assigned this Jun 11, 2024
Both containerd and runc have been a module for some time now, and all
the branches we care about are a module, so there's no need to set the
GO111MODULE env-var.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The official docker image now have GOTOOLCHAIN=local set by default,
so for stages where we build inside that image, we can remove it;

    docker image inspect --format='{{ json .Config.Env }}' golang:1.21.11 | jq .
    [
      "PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "GOLANG_VERSION=1.21.11",
      "GOTOOLCHAIN=local",
      "GOPATH=/go"
    ]

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Now that we no longer have to take 1.5/1.6 into account, we must
unconditionally disable brtfs for CentOS and RHEL, as no version
provides the Linux kernel headers for btrfs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This condition was added 5 Years ago in c08bd94
because older versions had some issues.

CentOS 7 currently installs `2:2.119.2-1.911c772.el7_8`, and CentOS 9 stream
has `3:2.231.0-1.el9`; both are higher than the minimum version specified,
so let's remove the condition.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Use more current versions of distros in the examples, because CentOS 7
will reach EOL soon, and there's a new Ubuntu LTS release.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

This one is ready for review; failures are Fedora Rawhide (unrelated issue)

@dmcgowan @vvoland

@thaJeztah thaJeztah mentioned this pull request Jun 11, 2024
2 tasks
@thaJeztah
Copy link
Member Author

Oh; if you have time; #362 is also an easy review

@thaJeztah thaJeztah merged commit 4300fd1 into docker:main Jun 11, 2024
1 of 2 checks passed
@thaJeztah thaJeztah deleted the cleanups_for_1.7 branch June 11, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants