Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Sep 3, 2024
2 parents cd0fea9 + 603db0e commit b478735
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 155 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ env:
# https://github.com/helm/helm/releases
HELM_VERSION: 3.15.4
# https://github.com/oras-project/oras/releases
ORAS_VERSION: 1.2.0
ORAS_VERSION: 1.1.0
# https://github.com/docker/buildx/releases
BUILDX_VERSION: 0.16.2
# https://github.com/hadolint/hadolint/releases
Expand Down Expand Up @@ -177,9 +177,11 @@ jobs:
--yes \
.cr-release-packages/blue-agent-${{ needs.init.outputs.VERSION }}.tgz
- name: Cache Helm chart
- name: Upload Helm chart
uses: actions/upload-artifact@v4.4.0
with:
if-no-files-found: error # Fail if no files are uploaded
include-hidden-files: true # Folder begins with a dot, if not checked the whole folder is ignored
name: helm-chart
path: .cr-release-packages

Expand Down Expand Up @@ -790,6 +792,7 @@ jobs:
- name: Upload build artifact
uses: actions/upload-artifact@v4.4.0
with:
if-no-files-found: error # Fail if no files are uploaded
name: hugo
path: docs/public

Expand Down
42 changes: 21 additions & 21 deletions src/docker/Dockerfile-bookworm
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bookworm-slim@sha256:4f1519bfe954d5caf962f5502c4252d5d39d45517aa68e6b5847e72fd10769b4 as base
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bookworm-slim@sha256:4f1519bfe954d5caf962f5502c4252d5d39d45517aa68e6b5847e72fd10769b4 AS base

# Force apt-get to not use TTY
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Configure local user
ENV USER root
ENV HOME /app-root
ENV USER=root
ENV HOME=/app-root

# Avoid Python cache during build
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONDONTWRITEBYTECODE=1

# Allow install Python system packages
ENV PIP_BREAK_SYSTEM_PACKAGES 1
ENV PIP_BREAK_SYSTEM_PACKAGES=1

# Install:
# - Azure Pipelines agent system requirements
Expand Down Expand Up @@ -71,19 +71,19 @@ RUN python3 -m pip \
setuptools wheel \
&& find / -depth -type d -name __pycache__ -exec rm -rf {} \; 2> /dev/null

FROM base as rootlesskit
FROM base AS rootlesskit

# Install Go, then verify installation
ARG GO_VERSION
ENV GO_VERSION ${GO_VERSION}
ENV GO_VERSION=${GO_VERSION}
RUN rm -rf /usr/local/go \
&& curl -LsSf --retry 8 --retry-all-errors https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local
ENV PATH="${PATH}:/usr/local/go/bin"
RUN go version

# Install RootlessKit, then verify installation
ARG ROOTLESSKIT_VERSION
ENV ROOTLESSKIT_VERSION ${ROOTLESSKIT_VERSION}
ENV ROOTLESSKIT_VERSION=${ROOTLESSKIT_VERSION}
RUN git clone --depth 1 --branch v${ROOTLESSKIT_VERSION} https://github.com/rootless-containers/rootlesskit.git rootlesskit \
&& make --directory rootlesskit \
&& make --directory rootlesskit install \
Expand All @@ -95,7 +95,7 @@ FROM base

# Install Azure CLI, then verify installation
ARG AZURE_CLI_VERSION
ENV AZURE_CLI_VERSION ${AZURE_CLI_VERSION}
ENV AZURE_CLI_VERSION=${AZURE_CLI_VERSION}
RUN python3 -m pip \
--disable-pip-version-check \
--no-cache-dir \
Expand All @@ -108,7 +108,7 @@ RUN python3 -m pip \

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
ENV AWS_CLI_VERSION=${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
Expand All @@ -117,7 +117,7 @@ RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-

# Install Google Cloud CLI, then verify installation
ARG GCLOUD_CLI_VERSION
ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION}
ENV GCLOUD_CLI_VERSION=${GCLOUD_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \
&& /usr/local/google-cloud-sdk/install.sh \
--additional-components beta \
Expand All @@ -130,7 +130,7 @@ RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/ch

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
ENV POWERSHELL_VERSION=${POWERSHELL_VERSION}
RUN mkdir -p /opt/microsoft/powershell \
&& curl -LsSf --retry 8 --retry-all-errors https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \
&& chmod +x /opt/microsoft/powershell/pwsh \
Expand All @@ -140,22 +140,22 @@ RUN mkdir -p /opt/microsoft/powershell \

# Install YQ, then verify installation
ARG YQ_VERSION
ENV YQ_VERSION ${YQ_VERSION}
ENV YQ_VERSION=${YQ_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \
&& chmod +x /usr/bin/yq \
&& yq --version

# Install Tini, then verify installation
ARG TINI_VERSION
ENV TINI_VERSION ${TINI_VERSION}
ENV TINI_VERSION=${TINI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \
&& chmod +x /tini \
&& /tini --version
ENTRYPOINT ["/tini", "--"]

# Install BuildKit, then verify installation
ARG BUILDKIT_VERSION
ENV BUILDKIT_VERSION ${BUILDKIT_VERSION}
ENV BUILDKIT_VERSION=${BUILDKIT_VERSION}
RUN mkdir buildkit \
&& curl -LsSf --retry 8 --retry-all-errors https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \
&& mv buildkit/bin/* /usr/local/bin \
Expand All @@ -170,11 +170,11 @@ RUN rootlesskit --version \

# Install Azure Pipelines Agent sources, then verify installation
ARG AZP_AGENT_VERSION
ENV AZP_AGENT_VERSION ${AZP_AGENT_VERSION}
ENV AZP_HOME ${HOME}/azp-agent
ENV AZP_AGENT_VERSION=${AZP_AGENT_VERSION}
ENV AZP_HOME=${HOME}/azp-agent
# Disable agent auto-updates
# See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24
ENV agent.disableupdate "1"
ENV agent.disableupdate="1"
RUN mkdir -p ${AZP_HOME} \
&& curl -LsSf --retry 8 --retry-all-errors https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \
&& cd ${AZP_HOME} \
Expand All @@ -183,8 +183,8 @@ RUN mkdir -p ${AZP_HOME} \
&& rm -rf _diag \
# Allow local user to R/W to agent home
&& chmod -R a+w .
ENV AZP_WORK ${HOME}/azp-work
ENV AZP_CUSTOM_CERT_PEM ${HOME}/azp-custom-certs
ENV AZP_WORK=${HOME}/azp-work
ENV AZP_CUSTOM_CERT_PEM=${HOME}/azp-custom-certs

# Cleanup helper script
RUN rm arch.sh
Expand Down
40 changes: 20 additions & 20 deletions src/docker/Dockerfile-bullseye
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim@sha256:c39b4582563fed008cb8e83d44388cf80dbc4e8cf8803869f5799205fcb126eb as base
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim@sha256:c39b4582563fed008cb8e83d44388cf80dbc4e8cf8803869f5799205fcb126eb AS base

# Force apt-get to not use TTY
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Configure local user
ENV USER root
ENV HOME /app-root
ENV USER=root
ENV HOME=/app-root

# Avoid Python cache during build
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONDONTWRITEBYTECODE=1

# Install:
# - Azure Pipelines agent system requirements
Expand Down Expand Up @@ -68,19 +68,19 @@ RUN python3 -m pip \
setuptools wheel \
&& find / -depth -type d -name __pycache__ -exec rm -rf {} \; 2> /dev/null

FROM base as rootlesskit
FROM base AS rootlesskit

# Install Go, then verify installation
ARG GO_VERSION
ENV GO_VERSION ${GO_VERSION}
ENV GO_VERSION=${GO_VERSION}
RUN rm -rf /usr/local/go \
&& curl -LsSf --retry 8 --retry-all-errors https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local
ENV PATH="${PATH}:/usr/local/go/bin"
RUN go version

# Install RootlessKit, then verify installation
ARG ROOTLESSKIT_VERSION
ENV ROOTLESSKIT_VERSION ${ROOTLESSKIT_VERSION}
ENV ROOTLESSKIT_VERSION=${ROOTLESSKIT_VERSION}
RUN git clone --depth 1 --branch v${ROOTLESSKIT_VERSION} https://github.com/rootless-containers/rootlesskit.git rootlesskit \
&& make --directory rootlesskit \
&& make --directory rootlesskit install \
Expand All @@ -92,7 +92,7 @@ FROM base

# Install Azure CLI, then verify installation
ARG AZURE_CLI_VERSION
ENV AZURE_CLI_VERSION ${AZURE_CLI_VERSION}
ENV AZURE_CLI_VERSION=${AZURE_CLI_VERSION}
RUN python3 -m pip \
--disable-pip-version-check \
--no-cache-dir \
Expand All @@ -105,7 +105,7 @@ RUN python3 -m pip \

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
ENV AWS_CLI_VERSION=${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
Expand All @@ -114,7 +114,7 @@ RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-

# Install Google Cloud CLI, then verify installation
ARG GCLOUD_CLI_VERSION
ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION}
ENV GCLOUD_CLI_VERSION=${GCLOUD_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \
&& /usr/local/google-cloud-sdk/install.sh \
--additional-components beta \
Expand All @@ -127,7 +127,7 @@ RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/ch

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
ENV POWERSHELL_VERSION=${POWERSHELL_VERSION}
RUN mkdir -p /opt/microsoft/powershell \
&& curl -LsSf --retry 8 --retry-all-errors https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \
&& chmod +x /opt/microsoft/powershell/pwsh \
Expand All @@ -137,22 +137,22 @@ RUN mkdir -p /opt/microsoft/powershell \

# Install YQ, then verify installation
ARG YQ_VERSION
ENV YQ_VERSION ${YQ_VERSION}
ENV YQ_VERSION=${YQ_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \
&& chmod +x /usr/bin/yq \
&& yq --version

# Install Tini, then verify installation
ARG TINI_VERSION
ENV TINI_VERSION ${TINI_VERSION}
ENV TINI_VERSION=${TINI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \
&& chmod +x /tini \
&& /tini --version
ENTRYPOINT ["/tini", "--"]

# Install BuildKit, then verify installation
ARG BUILDKIT_VERSION
ENV BUILDKIT_VERSION ${BUILDKIT_VERSION}
ENV BUILDKIT_VERSION=${BUILDKIT_VERSION}
RUN mkdir buildkit \
&& curl -LsSf --retry 8 --retry-all-errors https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \
&& mv buildkit/bin/* /usr/local/bin \
Expand All @@ -167,11 +167,11 @@ RUN rootlesskit --version \

# Install Azure Pipelines Agent sources, then verify installation
ARG AZP_AGENT_VERSION
ENV AZP_AGENT_VERSION ${AZP_AGENT_VERSION}
ENV AZP_HOME ${HOME}/azp-agent
ENV AZP_AGENT_VERSION=${AZP_AGENT_VERSION}
ENV AZP_HOME=${HOME}/azp-agent
# Disable agent auto-updates
# See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24
ENV agent.disableupdate "1"
ENV agent.disableupdate="1"
RUN mkdir -p ${AZP_HOME} \
&& curl -LsSf --retry 8 --retry-all-errors https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \
&& cd ${AZP_HOME} \
Expand All @@ -180,8 +180,8 @@ RUN mkdir -p ${AZP_HOME} \
&& rm -rf _diag \
# Allow local user to R/W to agent home
&& chmod -R a+w .
ENV AZP_WORK ${HOME}/azp-work
ENV AZP_CUSTOM_CERT_PEM ${HOME}/azp-custom-certs
ENV AZP_WORK=${HOME}/azp-work
ENV AZP_CUSTOM_CERT_PEM=${HOME}/azp-custom-certs

# Cleanup helper script
RUN rm arch.sh
Expand Down
Loading

0 comments on commit b478735

Please sign in to comment.