Skip to content

Commit

Permalink
Merge pull request #6 from microsoft/2.0
Browse files Browse the repository at this point in the history
bombastictranz/CBL-Mariner
  • Loading branch information
bombastictranz authored Jun 22, 2024
2 parents 74644c6 + a952e5f commit 62956df
Show file tree
Hide file tree
Showing 747 changed files with 24,312 additions and 21,933 deletions.
97 changes: 2 additions & 95 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,95 +1,2 @@
# By default all files require a review by at lest one member of the CBL-Mariner developers team.
* @microsoft/cbl-mariner-devs

# Modification to this file require admin approval.
/.github/CODEOWNERS @microsoft/cbl-mariner-admins

# Modifications to the build pipelines require admin approval.
/.pipelines/* @microsoft/cbl-mariner-admins

# Modifications to the CredScan exceptions require admin approval.
/.config/CredScanSuppressions.json @microsoft/cbl-mariner-admins

# Modification to what is considered "core packages" require admin approval.
/SPECS/core-packages/* @microsoft/cbl-mariner-admins

# Modification to specific packages go to specific teams
/SPECS/installkernel/* @microsoft/cbl-mariner-kernel
/SPECS/kernel/* @microsoft/cbl-mariner-kernel
/SPECS/kernel-azure/* @microsoft/cbl-mariner-kernel
/SPECS/kernel-hci/* @microsoft/cbl-mariner-kernel
/SPECS/kernel-headers/* @microsoft/cbl-mariner-kernel
/SPECS/kernel-mshv/* @microsoft/cbl-mariner-kata-containers
/SPECS/kernel-uvm/* @microsoft/cbl-mariner-kata-containers
/SPECS-SIGNED/kernel-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-hci-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-azure-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-mstflint-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-mshv-signed/* @microsoft/cbl-mariner-kata-containers

/SPECS/grub2/* @microsoft/cbl-mariner-bootloader
/SPECS/grubby/* @microsoft/cbl-mariner-bootloader
/SPECS/shim/* @microsoft/cbl-mariner-bootloader
/SPECS/shim-unsigned/* @microsoft/cbl-mariner-bootloader
/SPECS/shim-unsigned-x64/* @microsoft/cbl-mariner-bootloader
/SPECS/shim-unsigned-aarch64/* @microsoft/cbl-mariner-bootloader
/SPECS-SIGNED/grub2-efi-binary-signed/* @microsoft/cbl-mariner-bootloader

/SPECS/dracut/* @microsoft/cbl-mariner-dracut
/SPECS/initramfs/* @microsoft/cbl-mariner-dracut
/SPECS/verity-read-only-root/* @microsoft/cbl-mariner-dracut

/SPECS/systemd/* @microsoft/cbl-mariner-systemd

/SPECS/bcc/* @microsoft/cbl-mariner-debug-tools
/SPECS/bpftrace/* @microsoft/cbl-mariner-debug-tools
/SPECS/crash/* @microsoft/cbl-mariner-debug-tools
/SPECS/gdb/* @microsoft/cbl-mariner-debug-tools
/SPECS/kexec-tools/* @microsoft/cbl-mariner-debug-tools

/SPECS/openssl/* @microsoft/cbl-mariner-openssl
/SPECS/SymCrypt-OpenSSL/* @microsoft/cbl-mariner-openssl
/SPECS/SymCrypt/* @microsoft/cbl-mariner-openssl
/SPECS/KeysInUse-OpenSSL/* @microsoft/cbl-mariner-openssl

/SPECS/dnf/* @microsoft/cbl-mariner-package-managers
/SPECS/dnf-plugins-core/* @microsoft/cbl-mariner-package-managers
/SPECS/rpm/* @microsoft/cbl-mariner-package-managers
/SPECS/tdnf/* @microsoft/cbl-mariner-package-managers

/SPECS/moby-buildx/* @microsoft/cbl-mariner-container-runtime
/SPECS/moby-cli/* @microsoft/cbl-mariner-container-runtime
/SPECS/moby-containerd/* @microsoft/cbl-mariner-container-runtime
/SPECS/moby-containerd-cc/* @microsoft/cbl-mariner-kata-containers
/SPECS/moby-engine/* @microsoft/cbl-mariner-container-runtime
/SPECS/moby-runc/* @microsoft/cbl-mariner-container-runtime
/SPECS/kata-containers/* @microsoft/cbl-mariner-kata-containers
/SPECS/kata-containers-cc/* @microsoft/cbl-mariner-kata-containers
/SPECS/virtiofsd/* @microsoft/cbl-mariner-kata-containers

/SPECS/cloud-hypervisor/* @microsoft/cbl-mariner-virtualization
/SPECS/hvloader/* @microsoft/cbl-mariner-kata-containers
/SPECS-SIGNED/hvloader-signed/* @microsoft/cbl-mariner-kata-containers

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

# Modifications to the toolkit requires reviews from the toolkit team
/toolkit/ @microsoft/cbl-mariner-tooling

# Docs to be reviewed by general CBL-Mariner devs
/toolkit/docs/ @microsoft/cbl-mariner-devs

# Default image configurations to be reviewed by general CBL-Mariner devs
/toolkit/imageconfigs/ @microsoft/cbl-mariner-devs

# Package and toolchain manifests to be reviewed by general CBL-Mariner devs
/toolkit/resources/manifests/package/pkggen_core_aarch64.txt @microsoft/cbl-mariner-devs
/toolkit/resources/manifests/package/pkggen_core_x86_64.txt @microsoft/cbl-mariner-devs
/toolkit/resources/manifests/package/toolchain_aarch64.txt @microsoft/cbl-mariner-devs
/toolkit/resources/manifests/package/toolchain_x86_64.txt @microsoft/cbl-mariner-devs

# Modifications to the raw toolchain require admin approval.
/toolkit/scripts/toolchain/container/* @microsoft/cbl-mariner-admins
/toolkit/scripts/toolchain/cgmanifest.json @microsoft/cbl-mariner-admins
/toolkit/scripts/toolchain/create_toolchain_in_container.sh @microsoft/cbl-mariner-admins
# For stable release branches, ensure stable release maintainers are added as code reviewers
* @microsoft/cbl-mariner-stable-maintainers
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Feel free to delete sections of the template which do not apply to your PR, or a
- [ ] All source files have up-to-date hashes in the `*.signatures.json` files
- [ ] `sudo make go-tidy-all` and `sudo make go-test-coverage` pass
- [ ] Documentation has been updated to match any changes to the build system
- [ ] If you are adding/removing a .spec file that has multiple-versions supported, please add [@microsoft/cbl-mariner-multi-package-reviewers](https://github.com/orgs/microsoft/teams/cbl-mariner-multi-package-reviewers) team as reviewer [(Eg. golang has 2 versions 1.18, 1.21+)](https://github.com/microsoft/azurelinux/tree/2.0/SPECS/golang)
- [ ] Ready to merge

---
Expand Down
79 changes: 0 additions & 79 deletions .github/workflows/check-kernel-config.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/validate-cg-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ignore_multiple_sources=" \

# List of ignored specs due to no source tarball to scan.
ignore_no_source_tarball=" \
azurelinux-sysinfo \
ca-certificates \
check-restart \
core-packages \
Expand Down Expand Up @@ -227,7 +228,7 @@ do
# Parsing output instead of using error codes because 'wget' returns code 8 for FTP, even if the file exists.
# Sample HTTP(S) output: Remote file exists.
# Sample FTP output: File ‘time-1.9.tar.gz’ exists.
if ! wget --secure-protocol=TLSv1_2 --spider --timeout=2 --tries=10 "${manifesturl}" 2>&1 | grep -qP "^(Remote file|File ‘.*’) exists.*"
if ! wget --secure-protocol=TLSv1_2 --spider --timeout=30 --tries=10 "${manifesturl}" 2>&1 | grep -qP "^(Remote file|File ‘.*’) exists.*"
then
echo "Registration for $name:$version has invalid URL '$manifesturl' (could not download)" >> bad_registrations.txt
fi
Expand Down
2 changes: 2 additions & 0 deletions .pipelines/CodeQL/CodeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

name: CodeQL CBL-Mariner repository

trigger: none

resources:
repositories:
- repository: CBL-Mariner-Pipelines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,28 @@ FROM $BASE_IMAGE AS BASE

ARG AZL_VERSION=2.0

ARG RPMS
ARG LOCAL_REPO_FILE="local.repo"
ARG LOCAL_REPO_PATH="/localrepo"
ARG RPMS_TO_INSTALL
ARG RPMS_PATH="/dockerStage/RPMS"
ARG LOCAL_REPO_FILE="/dockerStage/marinerLocalRepo.repo"
ARG LOCAL_REPO_PATH="/localrepo"

COPY ${RPMS} /WORKDIR/RPMS
COPY ${LOCAL_REPO_FILE} /WORKDIR/REPO/local.repo

# Create local repo if RPMS are provided
# Create local repo with the given RPMS.
# This will allow the user to install packages from the local repo
# instead of fetching from PMC
RUN if [ "${RPMS}" ]; then \
RUN --mount=type=bind,source=./Stage/,target=/dockerStage/ \
mkdir -p $LOCAL_REPO_PATH; \
tdnf install -y --releasever=$AZL_VERSION createrepo; \
cp -r /WORKDIR/RPMS ${LOCAL_REPO_PATH}; \
cp /WORKDIR/REPO/local.repo /etc/yum.repos.d/local.repo; \
createrepo --database ${LOCAL_REPO_PATH} --workers 10; \
cp -r ${RPMS_PATH} ${LOCAL_REPO_PATH}; \
cp ${LOCAL_REPO_FILE} /etc/yum.repos.d/local.repo; \
createrepo --compatibility --database ${LOCAL_REPO_PATH} --workers 10; \
tdnf makecache; \
tdnf autoremove -y createrepo; \
fi
tdnf autoremove -y createrepo;

# Install busybox, glibc, and their dependencies into a staging location.
# Install packages into a staging location.
# Staging directory is copied into the final scratch image.
RUN mkdir /staging \
&& tdnf install -y --releasever=$AZL_VERSION --installroot /staging \
busybox glibc \
${RPMS_TO_INSTALL} \
&& tdnf clean all \
&& pushd /staging \
&& rm -rf boot media mnt opt run \
Expand Down
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/busybox/busybox.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
busybox
3 changes: 3 additions & 0 deletions .pipelines/containerSourceData/busybox/busybox.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
busybox
glibc
mariner-release
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/api.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-api
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/cloner.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-cloner
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/controller.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-controller
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/importer.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-importer
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/operator.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-operator
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/uploadproxy.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-uploadproxy
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/cdi/uploadserver.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
containerized-data-importer-uploadserver
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/certmanager/acmesolver.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cert-manager-acmesolver
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/certmanager/cainjector.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cert-manager-cainjector
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/certmanager/cmctl.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cert-manager-cmctl
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/certmanager/controller.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cert-manager-controller
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/certmanager/webhook.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cert-manager-webhook
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/influxdb/influxdb.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
influxdb
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/kubevirt/virt-api.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-virt-api
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-virt-controller
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/kubevirt/virt-handler.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-virt-handler
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/kubevirt/virt-launcher.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-virt-launcher
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/kubevirt/virt-operator.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubevirt-virt-operator
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/memcached/memcached.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memcached
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/multus/multus.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
multus
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/nginx/nginx.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nginx
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
distroless-packages-base
nodejs18
prebuilt-ca-certificates
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/nodejs/nodejs.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs18
2 changes: 1 addition & 1 deletion .pipelines/containerSourceData/nodejs/nodejs.pkg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ca-certificates
nodejs
nodejs18
2 changes: 0 additions & 2 deletions .pipelines/containerSourceData/nodejs/nodejs18.pkg

This file was deleted.

1 change: 1 addition & 0 deletions .pipelines/containerSourceData/openmpi/openmpi.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openmpi
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/php/php.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/postgres/postgres.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
postgresql
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
distroless-packages-base
prometheus
prebuilt-ca-certificates
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/prometheus/prometheus.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prometheus
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
distroless-packages-base
prometheus-adapter
prebuilt-ca-certificates
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prometheus-adapter
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
distroless-packages-base
python3
prebuilt-ca-certificates
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/python/python.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/pytorch/pytorch.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python3-pytorch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rabbitmq-server
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/redis/redis.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
redis
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/ruby/ruby.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby
1 change: 1 addition & 0 deletions .pipelines/containerSourceData/rust/rust.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rust
Loading

0 comments on commit 62956df

Please sign in to comment.