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

rhel doc #3180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions _data/snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ all_note: |
> * [macOS](/user/reference/osx/)
> * [Windows](/user/reference/windows/)
> * [FreeBSD](/user/reference/freebsd/)
> * [RHEL](/user/reference/rhel/)
unix_note: |
> For Language versions and other build-environment specific
> information visit our reference pages:
Expand All @@ -42,6 +43,7 @@ unix_note: |
> * [Bionic](/user/reference/bionic/)
> * [macOS](/user/reference/osx/)
> * [FreeBSD](/user/reference/freebsd/)
> * [RHEL](/user/reference/rhel/)
linux_note: |
> For Language versions and other build-environment specific
> information visit our reference pages:
Expand All @@ -58,6 +60,7 @@ linux_windows_note: |
> * [Bionic](/user/reference/bionic/)
> * [Windows](/user/reference/windows/)
> * [FreeBSD](/user/reference/freebsd/)
> * [RHEL](/user/reference/rhel/)
concurrent_jobs: |
The maximum number of concurrent jobs depends on the total system load, but
one situation in which you might want to set a particular limit is:
Expand Down
1 change: 1 addition & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ <h3>CI Environment Reference</h3>
<li><a href="/user/reference/osx/">macOS CI Environment Reference</a></li>
<li><a href="/user/reference/windows/">Windows CI Environment Reference</a></li>
<li><a href="/user/reference/freebsd/">FreeBSD CI Environment Reference</a></li>
<li><a href="/user/reference/rhel/">RedHat Enterprise Linux CI Environment Reference</a></li>
<li><a href="/user/multi-os/">Building on Multiple Operating Systems</a></li>
<li><a href="/user/multi-cpu-architectures/">Building on Multiple CPU Architectures</a></li>
<li><a href="/user/environment-variables/">Environment Variables</a></li>
Expand Down
20 changes: 20 additions & 0 deletions user/installing-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,26 @@ addons:
```
{: data-file=".travis.yml"}

## Installing Packages on RHEL

To install packages that are not included in the default RHEL environment use `yum` in the `before_install` step of your `.travis.yml`:

```yaml
before_install:
- su -m root -c 'yum install -y curl'
```
{: data-file=".travis.yml"}

For convenience, you can use the `yum` addon in your `.travis.yml`. For example, to install go and curl:

```yaml
addons:
pkg:
- go
- curl
```
{: data-file=".travis.yml"}

## Installing Dependencies on Multiple Operating Systems

If you're testing on both Linux and macOS, you can use both the APT addon and the Homebrew addon together. Each addon will only run on the appropriate platform:
Expand Down
99 changes: 99 additions & 0 deletions user/reference/rhel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
title: The RedHat Enterprise Linux Build Environment
layout: en

---

## Overview

This guide provides an overview of the packages, tools and settings available in the RHEL CI environment.

You can use the following distribution:

* [RHEL8](/user/reference/rhel/) **default**

## Using RHEL distributions

To use our RHEL build infrastructure, you can use the distribution above.

## Default

We use RHEL 8 as default.

## Using RHEL

To use RHEL, add the following to your your `.travis.yml`.

```yaml
os: linux
dist: rhel8
```
{: data-file=".travis.yml"}

Travis CI also supports the [Ubuntu Linux Build Environment](/user/reference/linux/), [Windows Build Environment](/user/reference/windows/)
and [macOS Build Environment](/user/reference/osx/).

> RHEL is available on our hosted fully virtualized infrastructure.


## Environment common to all RHEL8 images

The following versions of version control software and compilers are present on all RHEL 8
builds, along with more language specific software described in detail below.

Any preinstalled software not provided by the distro is installed from ports – either a prebuilt binary
if available, or a source release built with default options. For preinstalled language
interpreters, a standard version manager like rvm is used, if available for the language.

## Ruby support

* Pre-installed Rubies: 2.7.4.
* Available ruby versions: 2.5.9, 2.6.8, 2.7.4
* Other ruby versions can be installed during build time:

```yaml
language: ruby
rvm:
- 2.5 # RVM should install 2.5.9 for RHEL8
- 2.7 # should use default pre-installed 2.7.4
```
{: data-file=".travis.yml"}

## C and C++ support

Pre-install compilers and linkers:
* Make
* GNU autotools
* Scons
* Shellcheck
* Shfmt
* Clang
* GCC
* CMake
* Ccache
* Llvm

## Python support

* Supported Python versions: 2.7, 3.4 or higher.
* Pre-installed Python versions: 3.8, 3.9
* Pre-installed PyPy
* Pre-installed PIP

## Go support

* Pre-installed Go: 1.17
* Other Go versions can be installed during build time by specifying the language versions with the go:-key.


## JAVA support

* Default version: 11
* Pre-installed OpenJDK version 8, 11, 17
* Pre-installed Apache Ant(TM) version 1.10.12
* Pre-installed Apache Maven version 3.6.3
* Pre-installed Gradle version 6.3

## Docker

Currently unsupported.