Skip to content

Commit

Permalink
Update build OSes, pre-install Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Jun 11, 2024
1 parent 451af61 commit 0121e40
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rpmbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
centos:
- 'centos8'
- 'ubi'
steps:
- name: "Checkout source code at current commit"
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ docker/build/apk/shell run/apk:
# MATRIX BUILD
docker/build/deb/shell docker/build/deb/test run/deb : BUILDER_VERSION=stable-slim

docker/build/rpm/shell docker/build/rpm/test run/rpm : BUILDER_VERSION=centos8
docker/build/rpm/shell docker/build/rpm/test run/rpm : BUILDER_VERSION=ubi

## Build package as a test
docker/build/%/test:
Expand Down
5 changes: 3 additions & 2 deletions apk/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Need to use version number so that it gets updated here and triggers a build
FROM alpine:3.17.3
FROM alpine:3.19.1

ENV LC_ALL=C.UTF-8
ENV PS1="(apk) \w \$ "
Expand All @@ -16,6 +16,7 @@ RUN apk add --no-cache bash curl && \
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories

RUN apk update && \
apk add make curl alpine-sdk shadow bash jq sudo go
apk add make curl alpine-sdk shadow bash jq sudo go && \
apk add --update -U python3 python3-dev py3-pip libffi-dev gcc linux-headers musl-dev openssl-dev

RUN echo "auth sufficient pam_shells.so" > /etc/pam.d/chsh
5 changes: 4 additions & 1 deletion deb/Dockerfile.stable-slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Need to use version number so that it gets updated here and triggers a build
FROM debian:11.5-slim
ARG PYTHON_VERSION=3.12.3
ARG DEBIAN_CODENAME=bookworm

FROM python:${PYTHON_VERSION}-slim-${DEBIAN_CODENAME}

ENV LC_ALL=C.UTF-8
ENV PS1="(deb) \w \$ "
Expand Down
5 changes: 4 additions & 1 deletion rpm/Dockerfile.centos8 → rpm/Dockerfile.ubi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/ubi8/ubi
# UBI replaces Centos
FROM registry.access.redhat.com/ubi9/ubi

ENV LC_ALL=C.UTF-8
ENV PS1="(rpm) \w \$ "
Expand All @@ -7,6 +8,8 @@ RUN yum clean all && yum -y install ruby-devel gcc make rpm-build rubygems git z
# install sudo, needed by package sudosh, and protected, so it is nearly impossible to remove
RUN yum -y install sudo

RUN yum -y install python3.12 python3-pip

# https://github.com/jordansissel/fpm/issues/1663
# # # RUN gem install --no-document backports -v 3.15.0

Expand Down

0 comments on commit 0121e40

Please sign in to comment.