Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
centos, centos8, fedora, mageia,
opensuse, oraclelinux, rockylinux,
archlinux, manjarolinux,
cbl-mariner, chimeralinux,
azurelinux, chimeralinux,
gentoo, solus, void-linux]
# parrot
# redhat
Expand Down
27 changes: 17 additions & 10 deletions cbl-mariner/Dockerfile → azurelinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0
FROM mcr.microsoft.com/azurelinux/base/core:3.0

LABEL maintainer "TAKANO Mitsuhiro <takano32@gmail.com>"

RUN yum upgrade -y
RUN yum clean all
RUN yum install -y git
RUN tdnf upgrade -y
RUN tdnf install -y ca-certificates git
RUN tdnf clean all

ENV ORIGIN=https://github.com/microsoft/CBL-Mariner-Linux-Kernel.git

RUN git config --global http.sslVerify false
RUN git clone --depth 1 ${ORIGIN} /build-kernel/linux
RUN while :; do cd /build-kernel/linux && git fetch --unshallow && break || sleep 5; done
RUN cd /build-kernel/linux && git pull --all

RUN yum install -y make gcc bc bison flex awk openssl-devel
RUN yum install -y binutils diffutils cpio zstd rpm-build rsync
RUN yum install -y llvm clang lld
RUN yum install -y glibc-headers kernel-headers
RUN tdnf install -y \
make gcc bc bison flex gawk \
openssl-devel \
binutils diffutils cpio zstd rpm-build rsync \
llvm clang lld \
glibc-devel kernel-headers \
elfutils-libelf-devel dwarves perl \
tar gzip xz

RUN yum clean all
RUN tdnf clean all

COPY ./entrypoint.sh /
RUN chmod 755 /entrypoint.sh

EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]

ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ services:
dockerfile: ./archlinux/Dockerfile
ports:
- 8003:8000
cbl-mariner:
azurelinux:
build:
context: .
dockerfile: ./cbl-mariner/Dockerfile
dockerfile: ./azurelinux/Dockerfile
ports:
- 8019:8000
centos:
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ unset IFS
cd /build-kernel/linux

git fetch --all --tags
if [ "mariner" = "$OS_ID" ]; then
if [ "azurelinux" = "" ]; then
git branch -D rolling-lts/mariner || :
git checkout -b rolling-lts/mariner -t origin/rolling-lts/mariner-3/6.6.96.1 || :
else
Expand Down
Loading