Skip to content

Commit 2adb10a

Browse files
committed
Docker images need libyaml and headers
1 parent 81a536c commit 2adb10a

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

doc/user/installing-libyaml.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,24 @@ This is done automatically by Ruby managers, and mentioned in the post-install m
1313

1414
### Fedora-based: RHEL, Oracle Linux, etc
1515

16+
#### Fedora
17+
1618
```bash
1719
sudo dnf install libyaml-devel
1820
```
1921

22+
#### Oracle Linux 7
23+
24+
```bash
25+
sudo yum install --enablerepo=ol7_optional_latest libyaml-devel
26+
```
27+
28+
#### Oracle Linux 8
29+
30+
```bash
31+
sudo dnf install --enablerepo=ol8_codeready_builder libyaml-devel
32+
```
33+
2034
### Debian-based: Ubuntu, etc
2135

2236
```bash

tool/docker-configs.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ rpm: &rpm
33
specs: which findutils
44
zlib: zlib-devel
55
openssl: openssl-devel
6+
yaml: libyaml-devel
67
cext: gcc make
78
set-locale:
89
- ENV LANG=en_US.UTF-8
@@ -13,6 +14,7 @@ deb: &deb
1314
specs: netbase
1415
zlib: libz-dev
1516
openssl: libssl-dev
17+
yaml: libyaml-dev
1618
cext: gcc make
1719
set-locale:
1820
# Uncomment the en_US.UTF-8 line in /etc/locale.gen
@@ -23,13 +25,15 @@ deb: &deb
2325

2426
ol7:
2527
base: oraclelinux:7-slim
26-
install: RUN yum install -y
28+
# --enablerepo needed for libyaml-devel
29+
install: RUN yum install --enablerepo=ol7_optional_latest -y
2730
locale:
2831
<<: *rpm
2932

3033
ol8:
3134
base: oraclelinux:8-slim
32-
install: RUN microdnf install -y
35+
# --enablerepo needed for libyaml-devel
36+
install: RUN microdnf install --enablerepo=ol8_codeready_builder -y
3337
locale: glibc-langpack-en
3438
<<: *rpm
3539

tool/docker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def docker(*args)
125125

126126
packages << distro.fetch('zlib')
127127
packages << distro.fetch('openssl')
128+
packages << distro.fetch('yaml')
128129
packages << distro.fetch('cext')
129130

130131
proxy_vars = []

0 commit comments

Comments
 (0)