Skip to content

Segmentation fault when running samples/simple on RHEL9 using ubi docker image #2483

Discussion options

You must be logged in to vote

For me it is working:

FROM registry.access.redhat.com/ubi9/ubi:latest as builder

RUN dnf clean all && dnf -y update && dnf install -y git gcc python3-pip wget && \
  python3 -m pip install cx_freeze

WORKDIR /root
RUN wget https://github.com/marcelotduarte/cx_Freeze/archive/refs/tags/7.1.1.tar.gz && tar -xzvf 7.1.1.tar.gz

WORKDIR /root/cx_Freeze-7.1.1/samples/simple
RUN python3 setup.py build

FROM registry.access.redhat.com/ubi9/ubi:latest
COPY --from=builder /root/cx_Freeze-7.1.1/samples/simple/build/exe.linux-x86_64-3.9 /test/
ENTRYPOINT ["/test/hello"]

To run:
podman build -t test2483 .
podman run --rm test2483:latest

I used podman, but should work with docker.

Hello from cx_Freeze
…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ottobackwards
Comment options

@marcelotduarte
Comment options

Answer selected by ottobackwards
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants