Skip to content

Commit cc16a54

Browse files
deepak1556jeanp413
authored andcommitted
ci: add centos and bionic containers
1 parent 1576088 commit cc16a54

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

azure-pipelines.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,30 @@ stages:
151151
parameters:
152152
arch: snapcraft-x64
153153
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 }}

archived/bionic-arm32v7/Dockerfile_Unused renamed to bionic-arm32v7/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ RUN python --version
3232
RUN echo 'builduser ALL=NOPASSWD: ALL' >> /etc/sudoers.d/50-builduser \
3333
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
3434

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+
3541
# Github action need root user
3642
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
3743
# USER builduser

snapcraft-x64/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ RUN apt-get install --yes \
2020
libkrb5-dev \
2121
autoconf
2222

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+
2329
# Grab the core20 snap (which snapcraft uses as a base) from the stable channel
2430
# and unpack it in the proper place.
2531
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
5460
# Multi-stage build, only need the snaps from the builder. Copy them one at a
5561
# time so they can be cached.
5662
FROM ${REPO}:${TAG}
63+
COPY --from=builder /snap/core18 /snap/core18
5764
COPY --from=builder /snap/core20 /snap/core20
5865
COPY --from=builder /snap/snapcraft /snap/snapcraft
5966
COPY --from=builder /snap/bin/snapcraft /snap/bin/snapcraft

0 commit comments

Comments
 (0)