Skip to content

Commit 430aced

Browse files
committed
Merge branch 'main' into 2.0
2 parents fdfae9c + 9da930b commit 430aced

98 files changed

Lines changed: 4640 additions & 2627 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/SPECS-SIGNED/kernel-hci-signed/* @microsoft/cbl-mariner-kernel
2626
/SPECS-SIGNED/kernel-azure-signed/* @microsoft/cbl-mariner-kernel
2727
/SPECS-SIGNED/kernel-mstflint-signed/* @microsoft/cbl-mariner-kernel
28+
/SPECS-SIGNED/kernel-mshv-signed/* @microsoft/cbl-mariner-kata-containers
2829

2930
/SPECS/grub2/* @microsoft/cbl-mariner-bootloader
3031
/SPECS/grubby/* @microsoft/cbl-mariner-bootloader
@@ -68,6 +69,7 @@
6869

6970
/SPECS/cloud-hypervisor/* @microsoft/cbl-mariner-virtualization
7071
/SPECS/hvloader/* @microsoft/cbl-mariner-kata-containers
72+
/SPECS-SIGNED/hvloader-signed/* @microsoft/cbl-mariner-kata-containers
7173

7274
/SPECS/cloud-init/* @microsoft/cbl-mariner-provisioning
7375
/SPECS/walinuxagent/* @microsoft/cbl-mariner-provisioning

.pipelines/containerSourceData/Dockerfile-Initial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN --mount=type=bind,source=./Stage/,target=/dockerStage/ \\\
77
tdnf install -y createrepo; \\\
88
cp -r ${RPMS_PATH} ${LOCAL_REPO_PATH}; \\\
99
cat /dockerStage/marinerLocalRepo.repo >> /etc/yum.repos.d/local.repo; \\\
10-
createrepo --database ${LOCAL_REPO_PATH} --workers 10; tdnf makecache \&\& tdnf makecache; \\\
10+
createrepo --database ${LOCAL_REPO_PATH} --workers 10; tdnf makecache; \\\
1111
tdnf autoremove -y createrepo; \\\
1212
for rpm in "${RPMS_TO_INSTALL[@]}"; do \\\
1313
echo "RPM: $rpm"; \\\

.pipelines/containerSourceData/azurecli/Dockerfile-AzureCLI

Lines changed: 0 additions & 14 deletions
This file was deleted.

.pipelines/containerSourceData/azurecli/azurecli.pkg

Lines changed: 0 additions & 1 deletion
This file was deleted.

.pipelines/containerSourceData/base/Dockerfile-Base-Nonroot-Template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ARG BASE_IMAGE
55

66
FROM $BASE_IMAGE AS BASE
77

8-
ARG MARINER_VERSION=2.0
8+
ARG AZL_VERSION=2.0
99
ARG USERNAME=nonroot
1010
ARG USER_UID=65532
1111
ARG USER_GID=$USER_UID
1212
ARG SET_USER=$USERNAME
1313

1414
RUN mkdir -p /staging/etc \
15-
&& tdnf install -y --releasever=$MARINER_VERSION shadow-utils \
15+
&& tdnf install -y --releasever=$AZL_VERSION shadow-utils \
1616
&& groupadd --gid $USER_GID $USERNAME \
1717
&& useradd --gid $USER_GID -g $USERNAME $USERNAME -u $USER_UID \
1818
&& tdnf clean all \

.pipelines/containerSourceData/busybox/Dockerfile-Busybox-Template renamed to .pipelines/containerSourceData/base/Dockerfile-Busybox-Template

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,32 @@ ARG BASE_IMAGE
55

66
FROM $BASE_IMAGE AS BASE
77

8-
ARG MARINER_VERSION=2.0
8+
ARG AZL_VERSION=2.0
9+
10+
ARG RPMS
11+
ARG LOCAL_REPO_FILE="local.repo"
12+
ARG LOCAL_REPO_PATH="/localrepo"
13+
14+
COPY ${RPMS} /WORKDIR/RPMS
15+
COPY ${LOCAL_REPO_FILE} /WORKDIR/REPO/local.repo
16+
17+
# Create local repo if RPMS are provided
18+
# This will allow the user to install packages from the local repo
19+
# instead of fetching from PMC
20+
RUN if [ "${RPMS}" ]; then \
21+
mkdir -p $LOCAL_REPO_PATH; \
22+
tdnf install -y --releasever=$AZL_VERSION createrepo; \
23+
cp -r /WORKDIR/RPMS ${LOCAL_REPO_PATH}; \
24+
cp /WORKDIR/REPO/local.repo /etc/yum.repos.d/local.repo; \
25+
createrepo --database ${LOCAL_REPO_PATH} --workers 10; \
26+
tdnf makecache; \
27+
tdnf autoremove -y createrepo; \
28+
fi
929

1030
# Install busybox, glibc, and their dependencies into a staging location.
1131
# Staging directory is copied into the final scratch image.
1232
RUN mkdir /staging \
13-
&& tdnf install -y --releasever=$MARINER_VERSION --installroot /staging \
33+
&& tdnf install -y --releasever=$AZL_VERSION --installroot /staging \
1434
busybox glibc \
1535
&& tdnf clean all \
1636
&& pushd /staging \
@@ -37,5 +57,5 @@ FROM scratch
3757

3858
# Copy dependencies into the scratch image.
3959
COPY --from=BASE /staging/ .
40-
60+
COPY --from=BASE EULA-Container.txt /
4161
CMD [ "sh" ]

.pipelines/containerSourceData/distroless/Dockerfile-Distroless-Nonroot-Template renamed to .pipelines/containerSourceData/base/Dockerfile-Distroless-Nonroot-Template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ ARG FINAL_IMAGE
66

77
FROM $BASE_IMAGE AS BASE
88

9-
ARG MARINER_VERSION=2.0
9+
ARG AZL_VERSION=2.0
1010
ARG USERNAME=nonroot
1111
ARG USER_UID=65532
1212
ARG USER_GID=$USER_UID
1313
ARG SET_USER=$USERNAME
1414

1515
RUN mkdir -p /staging/etc \
16-
&& tdnf install -y --releasever=$MARINER_VERSION shadow-utils \
16+
&& tdnf install -y --releasever=$AZL_VERSION shadow-utils \
1717
&& groupadd --gid $USER_GID $USERNAME \
1818
&& useradd --gid $USER_GID -g $USERNAME $USERNAME -u $USER_UID \
1919
&& tdnf clean all \

.pipelines/containerSourceData/distroless/Dockerfile-Distroless-Template renamed to .pipelines/containerSourceData/base/Dockerfile-Distroless-Template

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bash
2+
bzi
3+
coreutils
4+
gmp
5+
grep
6+
libselinux
7+
pcre
8+
pcre-libs
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distroless-packages-base
2+
nodejs18

0 commit comments

Comments
 (0)