Skip to content

Commit d6b0b76

Browse files
committed
almalinux
1 parent c926ddb commit d6b0b76

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

.github/workflows/container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
image: [centos7, linux-arm64, alpine]
14+
image: [almalinux-devtoolset11, linux-arm64, alpine]
1515
name: Building ${{ matrix.image }} binaries
1616
runs-on: ubuntu-latest
1717

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
- alpine
2020
# - android-armv7
2121
# - android-arm64
22-
- centos7
22+
# - centos7
2323
# - linux-armv6
2424
# - linux-armv7
2525
# - linux-armv7l-musl
2626
- linux-arm64
2727
# - linux-arm64-lts
2828
# - linux-arm64-musl
29+
- almalinux-devtoolset11
2930
steps:
3031
- name: Checkout
3132
uses: actions/checkout@v4

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616
- alpine
1717
#- android-armv7
1818
#- android-arm64
19-
- centos7
19+
# - centos7
2020
#- linux-armv6
2121
#- linux-armv7
2222
#- linux-armv7l-musl
2323
- linux-arm64
2424
#- linux-arm64-lts
2525
#- linux-arm64-musl
26+
- almalinux-devtoolset11
2627
steps:
2728
- name: Checkout
2829
uses: actions/checkout@v4

almalinux-devtoolset11/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM almalinux:8-minimal
2+
3+
USER 0
4+
5+
# Need shadow-utils for groupadd and useradd
6+
RUN curl -fsSL https://rpm.nodesource.com/setup_22.x | bash - && \
7+
microdnf install -y shadow-utils make nodejs python3.11 gcc-toolset-11 git && \
8+
ln -s python3.11 /usr/bin/python && \
9+
ln -sf python3.11 /usr/bin/python3 && \
10+
microdnf clean all && \
11+
rm -rf /var/cache/yum && \
12+
groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
13+
groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
14+
npm -v && \
15+
python --version
16+
17+
USER node
18+
ENV HOME=/home/node
19+
20+
# Add gcc to PATH as alternative to "source scl_source enable gcc-toolset-11"
21+
ENV PATH=/opt/rh/gcc-toolset-11/root/usr/bin:$PATH
22+
23+
# Disable npm update check
24+
ENV NO_UPDATE_NOTIFIER=true
25+
ENV npm_config_update_notifier=false
26+
27+
WORKDIR /repo
28+
CMD ["scripts/build-generic.sh", "almalinux-devtoolset11"]

0 commit comments

Comments
 (0)