Skip to content

Commit

Permalink
base: update to Debian 12.
Browse files Browse the repository at this point in the history
And update relevant package versions.

We chose to install libtirpc3 by default, since so many IOCs depend on
Asyn and it would have complicated the IOC build for all of them.
  • Loading branch information
ericonr committed Oct 31, 2024
1 parent 96270b6 commit d5a2e27
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
image:
- { dir: base, name: lnls-debian-11-epics-7 }
- { dir: base, name: lnls-debian-12-epics-7 }
- { dir: base/musl, name: lnls-alpine-3-epics-7 }
env:
TAG: ${{ github.event_name == 'push' && github.ref_name || github.head_ref }}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG DEBIAN_VERSION=11.9
ARG DEBIAN_VERSION=12.7

FROM ghcr.io/cnpem/lnls-debian-11-epics-7:v0.12.0-dev AS build-image
FROM ghcr.io/cnpem/lnls-debian-12-epics-7:v0.12.0-dev AS build-image

FROM debian:${DEBIAN_VERSION}-slim AS base

Expand All @@ -15,6 +15,7 @@ COPY --from=build-image /etc/apt/apt.conf.d/90-disable-sandbox.conf /etc/apt/apt
RUN apt update -y && \
apt install -y --no-install-recommends \
libreadline8 \
libtirpc3 \
busybox \
netcat-openbsd \
procserv \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build thin IOC container images.
## Base image

The base image is built in CI and should be obtained directly from the [GitHub
registry](https://github.com/cnpem/epics-in-docker/pkgs/container/lnls-debian-11-epics-7).
registry](https://github.com/cnpem/epics-in-docker/pkgs/container/lnls-debian-12-epics-7).

The versions used in the base image are defined in `base/.env`.

Expand Down Expand Up @@ -88,7 +88,7 @@ image should be tagged as `latest`, `:${TAG}` can simply be omitted.
### areaDetector IOCs

`areaDetector` IOCs must be built with target `dynamic-link`. In addition, they
must include `libxml2` and `libtiff5` in the `RUNTIME_PACKAGES`, as they are
must include `libxml2` and `libtiff6` in the `RUNTIME_PACKAGES`, as they are
not built in `ADSupport`.

### Pmac IOCs
Expand Down
2 changes: 1 addition & 1 deletion base/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DEBIAN_VERSION=11.9
DEBIAN_VERSION=12.7
ALPINE_VERSION=3.20.3

EPICS7_BASE_VERSION=7.0.8.1
Expand Down
3 changes: 2 additions & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt update -y && \
libxml2-dev \
libsnmp-dev \
libssl-dev \
libtirpc-dev \
re2c \
unzip \
wget \
Expand Down Expand Up @@ -74,7 +75,7 @@ COPY backport-ipmicomm.patch .
COPY ipmicomm.patch .
COPY caputlog-waveform-fix.patch .
COPY install_modules.sh .
RUN ./install_modules.sh
RUN NEEDS_TIRPC=YES ./install_modules.sh

ARG AREA_DETECTOR_VERSION
ARG NDSSCPIMEGA_VERSION
Expand Down
2 changes: 1 addition & 1 deletion base/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
epics-base:
image: ${REGISTRY:-ghcr.io/cnpem}/lnls-debian-11-epics-7:$TAG
image: ${REGISTRY:-ghcr.io/cnpem}/lnls-debian-12-epics-7:$TAG
build:
context: ./
dockerfile: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion images/docker-compose-opcua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ services:
args:
REPONAME: opcua
RUNDIR: /opt/epics/modules/opcua/iocBoot/iocUaDemoServer
RUNTIME_PACKAGES: libxml2 libssl1.1
RUNTIME_PACKAGES: libxml2 libssl3

0 comments on commit d5a2e27

Please sign in to comment.