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

Create separate builds for CentOS7 (+fips) #9176

Merged
merged 3 commits into from
Dec 2, 2021
Merged

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Dec 1, 2021

Add new buildboxes for centos7 and centos7-fips.

For now, we will continue to support both CentOS 6 and 7.
Eventually we will drop support for CentOS 6, and the only
supported CentOS builds will be these new CentOS 7 builds.

Additionally, this change makes build.assets/Makefile the
source of truth for which Go/Rust versions we use to compile,
creating a few less places that need to be manually updated
when we wish to bump versions.

Fixes #9028

@zmb3 zmb3 requested a review from russjones December 1, 2021 01:43
@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch 5 times, most recently from 059a13e to 1eea931 Compare December 1, 2021 19:01
@zmb3 zmb3 marked this pull request as ready for review December 1, 2021 19:02
@github-actions github-actions bot requested a review from rosstimothy December 1, 2021 19:03
@zmb3 zmb3 added backport-required go Issues related to Go builds/tooling labels Dec 1, 2021
@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch from 1eea931 to 03d08c3 Compare December 1, 2021 19:04
docsbox:
if ! docker inspect --type=image $(DOCSBOX) 2>&1 >/dev/null; then docker pull $(DOCSBOX) || true; fi

.PHONY: test-docs
test-docs: DOCS_VERSION := $(shell grep -E ^VERSION $(MAKEFILE_ROOT_DIR)/Makefile | cut -d= -f2 | cut -d. -f1-2)
Copy link
Collaborator Author

@zmb3 zmb3 Dec 1, 2021

Choose a reason for hiding this comment

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

This has always failed and emitted a warning because MAKEFILE_ROOT_DIR was never defined:

grep: /Makefile: No such file or directory

As a result, the container would just mount src/content and run docs checks against all versions.

With this change, we get the same behavior that we've always had, without the pesky grep warning.

@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch 3 times, most recently from 0e6cc2f to ffa69bc Compare December 1, 2021 19:45
@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch 6 times, most recently from b527d2a to fed012a Compare December 1, 2021 22:59
Add new buildboxes for centos7 and centos7-fips.

For now, we will continue to support both CentOS 6 and 7.
Eventually we will drop support for CentOS 6, and the only
supported CentOS builds will be these new CentOS 7 builds.

Fixes #9028
@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch from fed012a to e922d0a Compare December 1, 2021 23:00
@zmb3 zmb3 force-pushed the zmb3/separate-centos7-builds branch from e922d0a to 6d1bf45 Compare December 1, 2021 23:01
@zmb3 zmb3 enabled auto-merge (squash) December 1, 2021 23:49
@zmb3 zmb3 disabled auto-merge December 1, 2021 23:50
@zmb3 zmb3 enabled auto-merge (rebase) December 1, 2021 23:50
@zmb3 zmb3 disabled auto-merge December 2, 2021 16:41
@zmb3 zmb3 enabled auto-merge (rebase) December 2, 2021 16:42
@zmb3 zmb3 merged commit 959623e into master Dec 2, 2021
@zmb3 zmb3 deleted the zmb3/separate-centos7-builds branch December 2, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-required go Issues related to Go builds/tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Teleport 8.0 commands fail on CentOS 7
4 participants