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

Implement RHEL8 #836

Open
wants to merge 68 commits into
base: ci-rhel-8
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
6696fb7
rhel 8 files copied from Ubuntu
Jan 31, 2022
5f7efaa
ci-rhel-8.yml partly adapted to rhel
Jan 31, 2022
ee93db8
ci-rhel-8 in variables
Jan 31, 2022
7f17160
couchdb and other things commented
Jan 31, 2022
0f98e56
cleanup
Jan 31, 2022
b7b72d7
fix
Jan 31, 2022
b7b9c21
build with proper pre chef bootstrap
Jan 31, 2022
2d5bf06
commented thigs removed from pre-chef-bootstrap-rhel, yum update
Jan 31, 2022
930f98a
installing tools in pre-chef-bootstrap.rhel
Feb 7, 2022
cb3b552
bad but works :/
Feb 14, 2022
7086cd3
gradle+ant
Feb 14, 2022
d31ffd7
pgfix
Feb 14, 2022
6e73f29
mysql fix
Feb 14, 2022
2230705
mysql key fix
Feb 14, 2022
fa8a14e
install bison
Feb 14, 2022
6d84fc7
mysql
Feb 14, 2022
7aac697
bison for centos 8
Feb 14, 2022
a420f7d
cleanup
Feb 14, 2022
ea7b6d9
cleanup: mariadb and erlang
karoltravis Feb 14, 2022
59237e1
Fix bison version
Feb 14, 2022
57551a7
test
GbArc Mar 1, 2022
b747840
test
GbArc Mar 1, 2022
545a793
dbg
GbArc Mar 7, 2022
d64a678
Update openstack flavor to p9
svghadi Mar 10, 2022
9feabaa
Remove openjdk7 install on ppc64le
svghadi Mar 14, 2022
d57ea1d
Don't use chef cli to run serverspecs on ppc64le
svghadi Mar 15, 2022
748ffb4
Fix shellcheck errors for run-serverspecs
svghadi Mar 17, 2022
1ae0b18
Merge pull request #838 from Siddhesh-Ghadi/sardonyx-ppc64le-fix
DamianSzymanski Mar 17, 2022
344b1ff
Add install libargon2
DamianSzymanski Mar 21, 2022
c38d337
Merge pull request #840 from travis-ci/ds-libargon2
DamianSzymanski Mar 21, 2022
ab6d599
Adding libargon2 to Bionic
smokodon Mar 30, 2022
3717ad8
Adding libargon2 to Bionic
smokodon Mar 30, 2022
b649fb0
Merge pull request #841 from travis-ci/kw-libargon2
smokodon Mar 30, 2022
d4eeb5a
w/a for build script
GbArc Apr 4, 2022
69ed5a6
tst
GbArc Apr 4, 2022
c924407
proto fix
GbArc Apr 4, 2022
30797a4
tst
GbArc Apr 5, 2022
f81381c
Updating Chef, adding couchdb cookie
smokodon Jun 2, 2022
2bf7e1e
Style fix
smokodon Jun 2, 2022
cc6b225
Style fix
smokodon Jun 2, 2022
cae6929
Python test fix
smokodon Jun 6, 2022
0ba73d7
Style fix
smokodon Jun 6, 2022
b7fa7a7
Merge pull request #847 from travis-ci/kw-couchdbfix
smokodon Jun 8, 2022
fd6f4d7
Adding Perforce
smokodon Jun 17, 2022
e20bede
Merge pull request #848 from travis-ci/kw_perforce
smokodon Jun 17, 2022
833b3c2
Security updates
smokodon Jun 30, 2022
1e70ba4
Style changes
smokodon Jul 1, 2022
9368a56
Merge pull request #849 from travis-ci/kw-update
smokodon Jul 4, 2022
4e1ecc3
Increase default Python3.8 versions for Focal (#850)
mustafaergul Jul 19, 2022
ee285ce
Updating Python and Ruby
smokodon Jul 29, 2022
d825e9d
Style fix
smokodon Jul 29, 2022
1a9db3b
Style fix
smokodon Jul 29, 2022
a9ba109
Merge pull request #853 from travis-ci/kw-updates
smokodon Jul 29, 2022
f0b55cc
Adding Cosign+Rekor
smokodon Aug 23, 2022
89b1951
Adjusting Cosign script
smokodon Aug 23, 2022
2a2eaa7
Adjusting Cosign script
smokodon Aug 23, 2022
51b5188
Adjusting Cosign script
smokodon Aug 23, 2022
d02cf51
Testing PATH for Cosign
smokodon Aug 23, 2022
3e235f6
Adding Cosign+Rekor script
smokodon Aug 25, 2022
b09f1a8
Merge pull request #855 from travis-ci/kw-cosign
smokodon Aug 25, 2022
2f70316
Removing incorrect override for focal
smokodon Aug 25, 2022
f9bb8ff
Merge pull request #856 from travis-ci/kw-focal_fix
smokodon Aug 26, 2022
863ec98
shellcheck fixes
GbArc Sep 20, 2022
4a66497
tests
GbArc Sep 20, 2022
b61fab1
Merge pull request #854 from travis-ci/ga-rheltest
GbArc Sep 21, 2022
26b9026
Merge branch 'master' into ci-rhel-8-dev
GbArc Sep 21, 2022
310dd2e
cosign updates
GbArc Sep 21, 2022
5ffdcb2
cosign updates
GbArc Sep 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 23 additions & 21 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-11-08 09:10:03 UTC using RuboCop version 1.22.1.
# on 2022-07-01 09:39:49 UTC using RuboCop version 1.31.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 2
# Cop supports --auto-correct.
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/LineEndStringConcatenationIndentation:
Expand All @@ -24,7 +24,7 @@ Lint/DuplicateMethods:
Metrics/AbcSize:
Max: 45

# Offense count: 25
# Offense count: 26
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
Expand All @@ -50,7 +50,7 @@ Naming/HeredocDelimiterNaming:
- 'spec/travis_packer_templates_spec.rb'

# Offense count: 10
# Cop supports --auto-correct.
# This cop supports unsafe autocorrection (--autocorrect-all).
Security/IoMethods:
Exclude:
- 'cookbooks/travis_ci_freebsd_12/metadata.rb'
Expand Down Expand Up @@ -78,11 +78,27 @@ Style/AccessModifierDeclarations:
- 'lib/stack_promotion_reporter.rb'

# Offense count: 1
# Cop supports --auto-correct.
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CaseLikeIf:
Exclude:
- 'cookbooks/travis_ci_ubuntu_2004/attributes/default.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Exclude:
- 'bin/assert-job-board-tags'
- 'cookbooks/lib/features/jdk_spec.rb'
- 'cookbooks/lib/support.rb'
- 'cookbooks/lib/support/job_board_tags.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
Exclude:
- 'spec/job_board_registrar_spec.rb'

# Offense count: 8
Style/MixinUsage:
Exclude:
Expand All @@ -95,23 +111,9 @@ Style/MixinUsage:
- 'spec/image_metadata_spec.rb'
- 'spec/travis_packer_templates_spec.rb'

# Offense count: 11
# Cop supports --auto-correct.
Style/SelectByRegexp:
Exclude:
- 'cookbooks/lib/fake_attributes.rb'
- 'cookbooks/lib/support.rb'
- 'cookbooks/travis_ci_opal/attributes/default.rb'
- 'cookbooks/travis_ci_sardonyx/attributes/default.rb'
- 'cookbooks/travis_ci_ubuntu_1804/attributes/default.rb'
- 'cookbooks/travis_ci_ubuntu_1804_minimal/attributes/default.rb'
- 'cookbooks/travis_ci_ubuntu_2004/attributes/default.rb'
- 'cookbooks/travis_ci_ubuntu_2004_minimal/attributes/default.rb'
- 'cookbooks/travis_packer_templates/libraries/travis_packer_templates.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 169
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install:
fi
- export GIT_DESC="$(git describe --always --dirty --tags)"
- rvm use 2.7.4 --install --binary --fuzzy
- gem install bundler:2.2.27
- gem install bundler:2.3.16
- bundle install --jobs=3 --retry=2 --path=vendor/bundle
- ./bin/packer-build-install
- ln -sv "${TRAVIS_BUILD_DIR}" "${TRAVIS_BUILD_DIR}/tmp/packer-chef-local"
Expand Down
72 changes: 36 additions & 36 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GIT
GEM
remote: https://rubygems.org/
specs:
activesupport (5.2.6)
activesupport (5.2.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand All @@ -19,11 +19,11 @@ GEM
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2)
coderay (1.1.3)
concurrent-ruby (1.1.9)
diff-lcs (1.4.4)
concurrent-ruby (1.1.10)
diff-lcs (1.5.0)
docile (1.4.0)
erubis (2.7.0)
faraday (0.17.4)
faraday (0.17.5)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.14.0)
faraday (>= 0.7.4, < 1.0)
Expand All @@ -44,73 +44,73 @@ GEM
multi_json (~> 1.0)
net-http-persistent (~> 2.9)
net-http-pipeline
git (1.9.1)
git (1.11.0)
rchardet (~> 1.8)
i18n (1.8.10)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
libyajl2 (2.1.0)
method_source (1.0.0)
mini_portile2 (2.6.1)
minitest (5.14.4)
mini_portile2 (2.8.0)
minitest (5.16.1)
multi_json (1.15.0)
multipart-post (2.1.1)
multipart-post (2.2.3)
net-http-persistent (2.9.4)
net-http-pipeline (1.0.1)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
parallel (1.21.0)
parser (3.0.2.0)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
polyglot (0.3.5)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
public_suffix (4.0.7)
racc (1.6.0)
rainbow (3.0.0)
rainbow (3.1.1)
rake (13.0.6)
rchardet (1.8.0)
regexp_parser (2.1.1)
regexp_parser (2.5.0)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rubocop (1.22.3)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (1.31.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.12.0, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.12.0)
parser (>= 3.0.1.1)
rubocop-ast (1.18.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
rufus-lru (1.1.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
simplecov_json_formatter (0.1.4)
thread_safe (0.3.6)
treetop (1.6.11)
polyglot (~> 0.3)
tzinfo (1.2.9)
thread_safe (~> 0.1)
unicode-display_width (2.1.0)
unicode-display_width (2.2.0)

PLATFORMS
ruby
Expand All @@ -124,4 +124,4 @@ DEPENDENCIES
travis-packer-build!

BUNDLED WITH
2.1.4
2.3.16
4 changes: 3 additions & 1 deletion ci-opal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ provisioners:
- type: shell
inline: chmod 0644 /var/tmp/opal-system-info-commands.yml
- type: chef-solo
version: 17.6.18
version: 17.10.3
config_template: chef-solo.rb.tmpl
<% if ENV['CHEF_PROFILING'] %>
execute_command: "{{if .Sudo}}sudo {{end}}CI=yes chef-solo --chef-license accept-silent -F doc --no-color -c {{.ConfigPath}} -j {{.JsonPath}}"
Expand Down Expand Up @@ -192,6 +192,8 @@ provisioners:
- packer-scripts/purge
- packer-scripts/disable-apparmor
- packer-scripts/run-serverspecs
- packer-scripts/perforce-install
- packer-scripts/cosign-install
- packer-scripts/test-system-info-output
- packer-scripts/dump-dpkg-manifest
- packer-scripts/create-bin-lib-checksums
Expand Down
89 changes: 89 additions & 0 deletions ci-rhel-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
description: Travis CI Red Hat Universal Base Image 8 build env template
variables:
chef_log_level: info
docker_repository: travisci/ci-rhel-8
docker_tag: packer-{{ timestamp }}-<%= git_desc %>
gce_account_file: "{{ env `GCE_ACCOUNT_FILE` }}"
gce_project_id: "{{ env `GCE_PROJECT_ID` }}"
image_name: travis-ci-rhel-8-{{ timestamp }}-<%= git_desc %>
travis_cookbooks_branch: "{{ env `TRAVIS_COOKBOOKS_BRANCH` }}"
travis_cookbooks_edge_branch: master
travis_cookbooks_sha: "{{ env `TRAVIS_COOKBOOKS_SHA` }}"
travis_uid: "{{ env `TRAVIS_UID` }}"
travis_subnet_id: "{{ env `TRAVIS_SUBNET_ID` }}"
travis_vpc_id: "{{ env `TRAVIS_VPC_ID` }}"
travis_source_ami: "{{ env `TRAVIS_SOURCE_AMI` }}"
builders:
- type: docker
name: docker
ssh_pty: true
image: "redhat/ubi8"
run_command:
- -d
- -v
- <%= Dir.pwd %>/tmp/packer-builder-tmp:/tmp
- --privileged=true
# Disable on bionic, it's only supported overlay fs on xfs with quota
# - --storage-opt=size=11G
- "{{ .Image }}"
- /sbin/init
commit: true
provisioners:
- type: shell
scripts:
- packer-scripts/pre-chef-bootstrap-rhel
environment_vars:
- TRAVIS_UID={{ user `travis_uid` }}
execute_command: "{{ .Vars }} exec bash '{{ .Path }}'"
- type: shell
scripts:
- packer-scripts/rhel8-install-pkgs
environment_vars:
- TRAVIS_UID={{ user `travis_uid` }}
execute_command: "{{ .Vars }} exec sudo -u travis -E -S bash '{{ .Path }}'"
- type: shell
scripts:
- packer-scripts/cosign-install
environment_vars:
- TRAVIS_UID={{ user `travis_uid` }}
execute_command: "{{ .Vars }} exec sudo -E -S bash '{{ .Path }}'"
- type: shell
scripts:
- packer-scripts/packer-env-dump
execute_command: "{{ .Vars }} exec sudo -E -S bash '{{ .Path }}'"
- type: shell
scripts:
- packer-scripts/create-rhel8-job-board-data
- packer-scripts/create-image-metadata-tarball-bsd
environment_vars:
- JOB_BOARD_REGISTER_FILE=/.job_board_register.yml
- IMAGE_METADATA_TARBALL=/var/tmp/image-metadata-{{ user `image_name` }}.tar.bz2
execute_command: "{{ .Vars }} exec sudo -E -S bash '{{ .Path }}'"
- type: file
source: /var/tmp/image-metadata-{{ user `image_name` }}.tar.bz2
destination: tmp/image-metadata-{{ user `image_name` }}.tar.bz2
direction: download
post-processors:
-
- type: docker-tag
repository: "{{ user `docker_repository` }}"
tag: "{{ user `docker_tag` }}"
only:
- docker
- type: shell-local
scripts: bin/docker-push
environment_vars:
- DOCKER_DEST={{ user `docker_repository` }}:{{ user `docker_tag` }}
only:
- docker
#-
# - type: shell-local
# script: bin/job-board-register
# environment_vars:
# - IMAGE_NAME={{ user `docker_repository` }}:{{ user `docker_tag` }}
# only:
# - docker
-
- type: shell-local
script: bin/write-latest-image-name
6 changes: 4 additions & 2 deletions ci-sardonyx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ builders:
# https://github.com/travis-ci/packer-templates/issues/555
- type: openstack
name: openstack
flavor: m1.large
flavor: p9.large
insecure: true
image_name: "{{ user `image_name` }}"
ssh_username: ubuntu
Expand Down Expand Up @@ -160,7 +160,7 @@ provisioners:
- type: shell
inline: chmod 0644 /var/tmp/sardonyx-system-info-commands.yml
- type: chef-solo
version: 17.6.18
version: 17.10.3
config_template: chef-solo.rb.tmpl
<% if ENV['CHEF_PROFILING'] %>
execute_command: "{{if .Sudo}}sudo {{end}}CI=yes chef-solo --chef-license accept-silent -F doc --no-color -c {{.ConfigPath}} -j {{.JsonPath}}"
Expand Down Expand Up @@ -193,6 +193,8 @@ provisioners:
- packer-scripts/purge
- packer-scripts/disable-apparmor
- packer-scripts/run-serverspecs
- packer-scripts/perforce-install
- packer-scripts/cosign-install
- packer-scripts/test-system-info-output
- packer-scripts/dump-dpkg-manifest
- packer-scripts/create-bin-lib-checksums
Expand Down
4 changes: 3 additions & 1 deletion ci-stevonnie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ provisioners:
- type: shell
inline: chmod 0644 /var/tmp/stevonnie-system-info-commands.yml
- type: chef-solo
version: 17.6.18
version: 17.10.3
config_template: chef-solo.rb.tmpl
<% if ENV['CHEF_PROFILING'] %>
execute_command: "{{if .Sudo}}sudo {{end}}CI=yes chef-solo --chef-license accept-silent -F doc --no-color -c {{.ConfigPath}} -j {{.JsonPath}}"
Expand Down Expand Up @@ -193,6 +193,8 @@ provisioners:
- packer-scripts/purge
- packer-scripts/disable-apparmor
- packer-scripts/run-serverspecs
- packer-scripts/perforce-install
- packer-scripts/cosign-install
- packer-scripts/test-system-info-output
- packer-scripts/dump-dpkg-manifest
- packer-scripts/create-bin-lib-checksums
Expand Down
2 changes: 1 addition & 1 deletion ci-ubuntu-1804-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ provisioners:
- type: shell
inline: chmod 0644 /var/tmp/ubuntu-1804-minimal-system-info-commands.yml
- type: chef-solo
version: 17.6.18
version: 17.10.3
config_template: chef-solo.rb.tmpl
<% if ENV['CHEF_PROFILING'] %>
execute_command: "{{if .Sudo}}sudo {{end}}CI=yes chef-solo --chef-license accept-silent -F doc --no-color -c {{.ConfigPath}} -j {{.JsonPath}}"
Expand Down
Loading