File tree Expand file tree Collapse file tree 5 files changed +40
-0
lines changed
centos7-devtoolset8-arm64 Expand file tree Collapse file tree 5 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -151,3 +151,30 @@ stages:
151
151
parameters :
152
152
arch : snapcraft-x64
153
153
release : ${{ parameters.dockerhub_release }}
154
+
155
+ - job : centos_x64
156
+ pool :
157
+ vmImage : ' ubuntu-latest'
158
+ steps :
159
+ - template : build-containers.yml
160
+ parameters :
161
+ arch : centos7-devtoolset8-x64
162
+ release : ${{ parameters.dockerhub_release }}
163
+
164
+ - job : centos_arm64
165
+ pool :
166
+ vmImage : ' ubuntu-latest'
167
+ steps :
168
+ - template : build-containers.yml
169
+ parameters :
170
+ arch : centos7-devtoolset8-arm64
171
+ release : ${{ parameters.dockerhub_release }}
172
+
173
+ - job : bionic_armhf
174
+ pool :
175
+ vmImage : ' ubuntu-latest'
176
+ steps :
177
+ - template : build-containers.yml
178
+ parameters :
179
+ arch : bionic-arm32v7
180
+ release : ${{ parameters.dockerhub_release }}
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ RUN python --version
32
32
RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
33
33
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
34
34
35
+ # install nodejs
36
+ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
37
+ RUN apt-get install -y nodejs
38
+ RUN npm install -g yarn
39
+ RUN npm install -g node-gyp
40
+
35
41
# Github action need root user
36
42
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
37
43
# USER builduser
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ RUN apt-get install --yes \
20
20
libkrb5-dev \
21
21
autoconf
22
22
23
+ # Grab the core18 snap (which snapcraft uses as a base) from the stable channel
24
+ # and unpack it in the proper place.
25
+ RUN curl -L $(curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/core18' | jq '.download_url' -r) --output core18.snap
26
+ RUN mkdir -p /snap/core18
27
+ RUN unsquashfs -d /snap/core18/current core18.snap
28
+
23
29
# Grab the core20 snap (which snapcraft uses as a base) from the stable channel
24
30
# and unpack it in the proper place.
25
31
RUN curl -L $(curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/core20' | jq '.download_url' -r) --output core20.snap
@@ -54,6 +60,7 @@ RUN cd patchelf && ./bootstrap.sh && ./configure && make && make check && cp ./s
54
60
# Multi-stage build, only need the snaps from the builder. Copy them one at a
55
61
# time so they can be cached.
56
62
FROM ${REPO}:${TAG}
63
+ COPY --from=builder /snap/core18 /snap/core18
57
64
COPY --from=builder /snap/core20 /snap/core20
58
65
COPY --from=builder /snap/snapcraft /snap/snapcraft
59
66
COPY --from=builder /snap/bin/snapcraft /snap/bin/snapcraft
You can’t perform that action at this time.
0 commit comments