How to create jenkins/inbound-agent:latest-alpine-jdk17 with podman?

Viewed 29

all faced issues with podman. The main idea creates Dockerfile for Jenkins which can build and test applications with testcontainers. Found that topic Testcontainers with Podman in Java tests

I have that dockerfile

FROM jenkins/inbound-agent:latest-alpine-jdk17

USER root

RUN  apk update \
  && apk upgrade \
  && apk add --update coreutils && rm -rf /var/cache/apk/*  \
  && apk add --update tzdata curl unzip bash libstdc++ libc6-compat \
  && apk add --no-cache nss \
  && apk add py3-pip \
  && apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo make npm \
  && apk add git \
  && apk add podman \
  && apk add openssh-client

When trying to build the app with test containers faced the problem of how to start Podman service for a regular user (rootless) and make it listen to a socket for the alpine.

0 Answers
Related