Skip to content

Commit

Permalink
Add debian10 image
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 11, 2025
1 parent 6cc2a39 commit fd5fca8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,41 @@ on:
types: [created]

jobs:
build-debian10:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Prepare
id: prepare
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
TAGS="--tag ghcr.io/grycap/faas-supervisor-build:debian10-latest"
if [[ ! -z "$VERSION" ]]; then
TAGS="$TAGS --tag ghcr.io/grycap/faas-supervisor-build:debian10-${VERSION}"
fi
echo ::set-output name=buildx_args::--platform "linux/amd64,linux/arm64" \
${TAGS} debian10
- name: GHCR login
env:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_PASSWORD: ${{ secrets.GHCR_PASSWORD }}
run: echo "${GHCR_PASSWORD}" | docker login ghcr.io --username "${GHCR_USERNAME}" --password-stdin
- name: Build and Push
run: docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
- name: Clear
if: always()
run: rm -f ${HOME}/.docker/config.json

build-ubuntu16:
runs-on: ubuntu-20.04
#if: false
if: false
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -74,6 +106,7 @@ jobs:

build-ubuntu24:
runs-on: ubuntu-24.04
if: false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
18 changes: 18 additions & 0 deletions debian10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM debian:10
# Add global TARGETARCH argument to this stage
ARG TARGETARCH
LABEL maintainer="Miguel Caballer <[email protected]>"
LABEL description="Container image to build faas-supervisor in amd64"
RUN echo "deb http://deb.debian.org/debian bullseye main" | tee /etc/apt/sources.list.d/bullseye.list
RUN apt update
RUN apt install binutils python3.9 python3.9-distutils python3.9-dev curl zip -y
RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.9 get-pip.py
ENV LD_LIBRARY_PATH /usr/local/lib
RUN python3.9 -m pip --no-cache-dir install pyinstaller
RUN python3.9 -m pip --no-cache-dir install boto3==1.20.38 \
requests==2.27.1 \
setuptools>=40.8.0 \
wheel==0.37.1 \
pyyaml==6.0 \
awslambdaric==2.0.12 \
rucio-clients==1.31.7

0 comments on commit fd5fca8

Please sign in to comment.