Dockerized plastimatch container

181 views
Skip to first unread message

Paul Ehrlich

unread,
Jun 13, 2022, 7:50:11 AM6/13/22
to Plastimatch
Hello,

I am trying to install a dockerized version of plastimatch for one of our backend services. I am able to install plastimatch 1.7.0 in an Ubuntu 18.04 container. When I try to install plastimatch  on a newer image I am getting the follwing error:

 > [5/5] RUN apt-get -y install plastimatch:
#9 0.176 Reading package lists...
#9 0.546 Building dependency tree...
#9 0.621 Reading state information...
#9 0.632 Package plastimatch is not available, but is referred to by another package.
#9 0.632 This may mean that the package is missing, has been obsoleted, or
#9 0.632 is only available from another source
#9 0.632
#9 0.636 E: Package 'plastimatch' has no installation candidate

Does anyone have a clue what is meant by that? We are also running a workstation on Ubuntu 18.04 and are able to build a docker container on a newer version of Ubuntu (20.04)

Here is the Dockerfile:

FROM ubuntu:20.04
RUN apt-get -y update && apt-get -y install && apt-get -y upgrade
COPY . /app
WORKDIR /app
RUN apt-get -y install plastimatch

Thanks in advance for your help,
Paul

Sharp, Gregory C.

unread,
Jun 14, 2022, 6:30:16 PM6/14/22
to Plastimatch
Hi Paul,

I know *absolutely* nothing about docker, but I am willing to try to help. Can you please explain the following?

"I am trying to install a dockerized version of plastimatch for one of our backend services. I am able to install plastimatch 1.7.0 in an Ubuntu 18.04 container. When I try to install plastimatch on a newer image..."

My parsing of this statement is that you have a dockerized plastimatch 1.7.0, and it installs on 18.04 but not 20.04. Did I get that right?

My vague idea is that docker creates a bundled executable that you can create in one platform and then run in another platform. Did I get that right? And do they also need to be installed? How do you install them?

If you can give more detailed information and/or steps to reproduce that would be helpful. Especially regarding which plastimatch version and which Ubuntu platform is failing. My (again) vague thought is that the prerequisites (e.g. dcmtk) are not available or missing in the dockerized exe.

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Paul Ehrlich <paul9...@gmail.com>
Sent: Monday, June 13, 2022 7:50 AM
To: Plastimatch
Subject: [Plastimatch] Dockerized plastimatch container

External Email - Use Caution
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/4257d009-e78b-4b54-a52d-49a9ed2f9065n%40googlegroups.com<https://secure-web.cisco.com/11ubxbVuxzpjzwYySC6nXqMhfo8ClLEUdyWKJPzWbcjFTuqY5XqhOTrf_sMk9VhtfkeYGrP15ZQBpDawEPBxejBzGcZVoWf6hPwwjfMp_Su2xNqX1qkRWnfp8hNoFljzA2Du6A076JJj73c6hHnqA_g_NQOX7rhFhG837NcmgpBKJq_IITtFd34SXPTsOSmoN73djXi8ehO8dOPwZfixX1itl4QZM5gadNT8sAdB1W4_it7421iVdvg-OzwUelWYUkumy17vc4EaXiAj8lHyGqAy-B1eZinUpV-T2X7VdSZZNl6jgY5cYKptBIsLbjKmCpQWqCqQsRGGXx-YTdAEltw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F4257d009-e78b-4b54-a52d-49a9ed2f9065n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

Paul Ehrlich

unread,
Jun 20, 2022, 9:47:01 AM6/20/22
to Plastimatch
Hi Greg, 

you are right. I was able to run plastimatch 1.7.0 in a ubuntu 18.04 container. However, if I want to upgrade the OS and plastimatch (20.04/1.8.0) it fails.

You could try to reproduce this error by creating a docker file (you also have to call it Dockerfile) with the following content: 

FROM ubuntu:$(version)

RUN apt-get -y update && apt-get -y install && apt-get -y upgrade
COPY . /app
WORKDIR /app
RUN apt-get -y install plastimatch

Make sure that docker is installed and run:
docker build -t $(container-name) $(path-to-your-dockerfile)

This step produces the error. You can run the container with:
docker run -it --rm $(container-name)

Sharp, Gregory C.

unread,
Jul 5, 2022, 4:09:10 PM7/5/22
to Plastimatch
Hi Paul,

I was able to successfully follow your instructions and create the docker file. Unfortunately, I wasn't able to reproduce the problem.

$ docker build -t plm-ubuntu .
Sending build context to Docker daemon 2.048kB
Step 1/5 : FROM ubuntu:20.04
[snip]
Successfully built e2c27dff8ea7
Successfully tagged plm-ubuntu:latest
$ docker run -it --rm plm-ubuntu
root@ecc63fe12702:/app# /usr/bin/plastimatch
plastimatch version 1.8.0
Usage: plastimatch command [options]
Commands:
add adjust average bbox boundary
crop compare compose convert dice
diff dmap dose drr dvh
fdk fill filter gamma header
jacobian lm-warp mabs mask maximum
ml-convert multiply probe register resample
scale segment sift stats synth
synth-vf threshold thumbnail union warp
xf-convert xf-invert

For detailed usage of a specific command, type:
plastimatch command

Any idea what I could be doing differently? This was on Debian Buster, Docker version 18.09.1,

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Paul Ehrlich <paul9...@gmail.com>
Sent: Monday, June 20, 2022 9:47 AM
To: Plastimatch
Subject: Re: [Plastimatch] Dockerized plastimatch container
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/4257d009-e78b-4b54-a52d-49a9ed2f9065n%40googlegroups.com<https://secure-web.cisco.com/11OqFx3OrDjwPomQXIHD-jMe8w-ExUzhNwx5En5YHr0NKf7VHXH_BWCrZNCFfj-V9earxz5Y7wymp9pDWZGrbD-E8YgcWmujqhJnDsOEsSwwPkvuWvGP_2OJ8w8uhmb0usI3aO7_nRDJPrBCy0iQKAZl2BTin1_qrxXsl70oW-38QICzN4pnkUagVEoccJ5gNwwLJLtkp-JXhfOTCkfDHhW6vJRr_CMVG7UrGxYFNJ8Q6PO2w5kZeAJTgPpMg8V_pVo7M9ep6gZ7gg-h-bJ-zID7b1fptYlmsQz_LPft7Jsm7ZUt-N5fvuK2jpdXYE3fXSZJOMCn1cAwNhQn6kgvnWw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F4257d009-e78b-4b54-a52d-49a9ed2f9065n%2540googlegroups.com><https://secure-web.cisco.com/11ubxbVuxzpjzwYySC6nXqMhfo8ClLEUdyWKJPzWbcjFTuqY5XqhOTrf_sMk9VhtfkeYGrP15ZQBpDawEPBxejBzGcZVoWf6hPwwjfMp_Su2xNqX1qkRWnfp8hNoFljzA2Du6A076JJj73c6hHnqA_g_NQOX7rhFhG837NcmgpBKJq_IITtFd34SXPTsOSmoN73djXi8ehO8dOPwZfixX1itl4QZM5gadNT8sAdB1W4_it7421iVdvg-OzwUelWYUkumy17vc4EaXiAj8lHyGqAy-B1eZinUpV-T2X7VdSZZNl6jgY5cYKptBIsLbjKmCpQWqCqQsRGGXx-YTdAEltw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F4257d009-e78b-4b54-a52d-49a9ed2f9065n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1xVQolzQ1cKhAyzzf7m7j3D8LSg9m2A9qWqR_ilBvN7MVJogDtOB7iWgCG1I8HqXlfDURAIQDqQNjEH_8y8g205UIHbZ0JfgIO-Bm-9FUE3PtdMjO7KjmIPKtdhzvogOYEklbiv1FV2K0ehGwf4WOe2-giu0NgwSAvqNXANOXhfa9AoJ5zZAsUEMFOcp6fCY-X6wMOMGRXOncRT5GCS9GshmJ_Z8wr-slmebI877YFasVcxRMfMHvat-uOsP6LCsb5euIkHgyN1fLgiDB5tJY-dKpk7XXjehc71ZR9Zt6GrMpJ5rp8HU5zxJbeINPodVPGdJo0noYLO-vKUGMx41XaQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1xVQolzQ1cKhAyzzf7m7j3D8LSg9m2A9qWqR_ilBvN7MVJogDtOB7iWgCG1I8HqXlfDURAIQDqQNjEH_8y8g205UIHbZ0JfgIO-Bm-9FUE3PtdMjO7KjmIPKtdhzvogOYEklbiv1FV2K0ehGwf4WOe2-giu0NgwSAvqNXANOXhfa9AoJ5zZAsUEMFOcp6fCY-X6wMOMGRXOncRT5GCS9GshmJ_Z8wr-slmebI877YFasVcxRMfMHvat-uOsP6LCsb5euIkHgyN1fLgiDB5tJY-dKpk7XXjehc71ZR9Zt6GrMpJ5rp8HU5zxJbeINPodVPGdJo0noYLO-vKUGMx41XaQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.


--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/94cd2129-3b72-4d81-b315-76378964a0fdn%40googlegroups.com<https://secure-web.cisco.com/1_Smgd7MZzqq2sv92oCy-chFDyTq6o2FyFB3jgnbNG1bqy-h6G57yykKaqSF9O5d7DvHsmtinTsZyhAxtcKMIaEKOWvr0wZmmEkUbo6T7HmYBSDfw22P13JYUBXuqT0fhQNN1BHZK0FnOiRYtSGYr9M6zlovi84N-q1bBSDyXrPmFaGyb6imwCOUzKiW6zPRXZfB24Q1BFHOEDuNplTYn2StNqg3PBEbshgAfLiUP_OyAF-1OROQucYclb0loIe23xizkhwACBvQ9poU341M2awEGNy4-y5H5iDJgCEqJfVBUA2V1F7MxS0D9myLpC9jJIXkBKb8lbqk-fqsPlwVadg/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F94cd2129-3b72-4d81-b315-76378964a0fdn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.

Paul Ehrlich

unread,
Jul 7, 2022, 4:42:24 AM7/7/22
to Plastimatch
Hi Greg, 

I think I found the issue. As mentioned, I found it odd that the exact Dockerfile would build perfectly on our linux server, but fail locally on my Mac. 
It is not a problem of plastimatch, but a problem of the different CPU instruction set of the new apple chips. Many libraries are also facing similar issues.

I wrote a stackoverflow post for this problem, an easy solution and also linked some useful references.

Paul
Reply all
Reply to author
Forward
0 new messages