Skip to content

Commit 14ef549

Browse files
danbevrichardlau
authored andcommitted
ansible: add libcap-dev package to Linux distros
This commit adds the libcap-dev package to linux distributions to support the usage of Linux capabilities in Node.js. Fixes: #2599 Refs: nodejs/node#37727
1 parent 3e7f097 commit 14ef549

9 files changed

+25
-17
lines changed

ansible/roles/baselayout/vars/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ packages: {
4141
# centos-release-scl is required to enable SCLo but we do it manually in
4242
# partials/repo/centos7.yml for arm64
4343
centos7_arm64: ['git,python3'], # git2u not available for aarch64 (yet)
44-
centos7_x64: ['devtoolset-6-libatomic-devel,git2u,centos-release-scl'],
45-
centos7_ppc64: ['cmake3,devtoolset-6-libatomic-devel,git,python3'],
44+
centos7_x64: ['devtoolset-6-libatomic-devel,git2u,centos-release-scl,libcap-devel'],
45+
centos7_ppc64: ['cmake3,devtoolset-6-libatomic-devel,git,python3,libcap-devel'],
4646

4747
centos7: [
48-
'bzip2-devel,openssl-devel,ccache,gcc-c++,devtoolset-6,sudo,zlib-devel,libffi-devel,devtoolset-8,devtoolset-8-libatomic-devel',
48+
'bzip2-devel,openssl-devel,ccache,gcc-c++,devtoolset-6,sudo,zlib-devel,libffi-devel,devtoolset-8,devtoolset-8-libatomic-devel,libcap-devel',
4949
],
5050

5151
aix: [
@@ -61,23 +61,23 @@ packages: {
6161
],
6262

6363
debian8: [
64-
'ccache,git,gcc-4.9,g++-4.9,libfontconfig1,binutils-2.26,sudo',
64+
'ccache,git,gcc-4.9,g++-4.9,libfontconfig1,binutils-2.26,sudo,libcap-dev',
6565
],
6666

6767
debian9: [
68-
'gcc-6,g++-6,ccache,git,curl,libfontconfig1,apt-transport-https,ca-certificates,sudo',
68+
'gcc-6,g++-6,ccache,git,curl,libfontconfig1,apt-transport-https,ca-certificates,sudo,libcap-dev',
6969
],
7070

7171
debian10: [
72-
'gcc-8,g++-8,ccache,git,curl,libfontconfig1,apt-transport-https,ca-certificates,sudo,python3-pip',
72+
'gcc-8,g++-8,ccache,git,curl,libfontconfig1,apt-transport-https,ca-certificates,sudo,python3-pip,libcap-dev',
7373
],
7474

7575
fedora: [
76-
'bzip2,ccache,gcc-c++,git,fontconfig,sudo,make',
76+
'bzip2,ccache,gcc-c++,git,fontconfig,sudo,make,libcap-devel',
7777
],
7878

7979
freebsd: [
80-
'ccache,git,gmake,sudo,python3,py36-pip'
80+
'ccache,git,gmake,sudo,python3,py36-pip,libcap-dev'
8181
],
8282

8383
'macos10.10': [
@@ -115,7 +115,7 @@ packages: {
115115
],
116116

117117
rhel7: [
118-
'gcc-c++,sudo,git,zip,unzip,iptables-services,GConf2-devel,openssl-devel,python3',
118+
'gcc-c++,sudo,git,zip,unzip,iptables-services,GConf2-devel,openssl-devel,python3,libcap-devel',
119119
],
120120

121121
smartos: [
@@ -148,7 +148,7 @@ packages: {
148148
],
149149

150150
ubuntu: [
151-
'ccache,g++,gcc,g++-6,gcc-6,git,libfontconfig1,sudo,python3-pip',
151+
'ccache,g++,gcc,g++-6,gcc-6,git,libfontconfig1,sudo,python3-pip,libcap-dev',
152152
],
153153

154154
ubuntu1404: [

ansible/roles/docker/templates/alpine311.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ RUN apk add --no-cache --virtual .build-deps \
4040
bash \
4141
automake \
4242
libtool \
43-
autoconf
43+
autoconf \
44+
libcap-dev
4445

4546
RUN pip3 install tap2junit
4647

ansible/roles/docker/templates/alpine312.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ RUN apk add --no-cache --virtual .build-deps \
3838
bash \
3939
automake \
4040
libtool \
41-
autoconf
41+
autoconf \
42+
libcap-dev
4243

4344
RUN pip3 install tap2junit
4445

ansible/roles/docker/templates/ubi81.Dockerfile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ RUN dnf install --disableplugin=subscription-manager -y \
2525
python3 \
2626
openssl-devel \
2727
procps-ng \
28+
libcap-devel \
2829
&& dnf --disableplugin=subscription-manager clean all
2930

3031
RUN groupadd -r -g {{ server_user_gid.stdout_lines[0] }} {{ server_user }} \

ansible/roles/docker/templates/ubuntu1604.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y \
2222
curl \
2323
python-pip \
2424
python3-pip \
25-
libfontconfig1
25+
libfontconfig1 \
26+
libcap-dev
2627

2728
RUN pip install tap2junit
2829

ansible/roles/docker/templates/ubuntu1604_arm_cross.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ RUN apt-get update \
2323
gcc-4.9-multilib \
2424
g++-4.9-multilib \
2525
gcc-6-multilib \
26-
g++-6-multilib
26+
g++-6-multilib \
27+
libcap-dev
2728

2829
RUN pip install tap2junit \
2930
&& pip3 install tap2junit

ansible/roles/docker/templates/ubuntu1804.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y \
2222
curl \
2323
python-pip \
2424
python3-pip \
25-
libfontconfig1
25+
libfontconfig1 \
26+
libcap-dev
2627

2728
RUN pip install tap2junit
2829

ansible/roles/docker/templates/ubuntu1804_arm_cross.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ RUN apt-get update \
2424
gcc-6-multilib \
2525
g++-6-multilib \
2626
gcc-8-multilib \
27-
g++-8-multilib
27+
g++-8-multilib \
28+
libcap-dev
2829

2930
RUN pip install tap2junit \
3031
&& pip3 install tap2junit

ansible/roles/docker/templates/ubuntu1804_sharedlibs.Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ RUN apt-get update && apt-get install apt-utils -y && \
2424
curl \
2525
python-pip \
2626
python3-pip \
27-
libfontconfig1
27+
libfontconfig1 \
28+
libcap-dev
2829

2930
RUN pip install tap2junit
3031

0 commit comments

Comments
 (0)