Skip to content

Running Verifyta in docker containers. #302

Answered by mikucionisaau
linem-davton asked this question in Q&A
Discussion options

You must be logged in to vote

I just tried it now and I see that verifyta -v from UPPAAL-5.0 indeed crashes, but only at the very end, so it's not a libc issue.

Now I remembered that there was an issue with UPPAAL-5.0 in docker environment where $USER variable is not defined (used to locate the path for UPPAAL settings), because docker runs everything under root by default.

As a workaround please set USER variable, for example:

FROM ubuntu:24.04

RUN apt-get -qq update && apt-get -qq upgrade
# RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1001 ubuntu # ubuntu is already there
USER ubuntu # change to user ubuntu instead of root
ENV USER=ubuntu # set the environment variable
ADD . /home/ubuntu/uppaal #…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by linem-davton
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