orthanc-builder help/questions

I was able to build the following docker image on AWS:
https://github.com/orthanc-server/orthanc-builder/blob/master/docker/orthanc/Dockerfile#L271

after commenting out:
#####–FROM osimis/orthanc-builder-base:vcpkg-google-${BASE_IMAGE_TAG} as build-plugin-object-storage-google
#####–FROM osimis/orthanc-builder-base:vcpkg-azure-${BASE_IMAGE_TAG} as build-plugin-object-storage-azure

########################## Orthanc Indexer
########################## Orthanc Neuro
########################## Orthanc TCIA
########################## Orthanc azure storage plugins
########################## Orthanc Google storage plugins
########################## Orthanc Explorer 2

################################ the image that will run Orthanc dynamicaly linked (intermediate version without vcpkg builds)
ENV MALLOC_ARENA_MAX=5
#COPY docker-entrypoint.sh /
COPY *.json /startup/
#COPY generateConfiguration.py /startup/
#COPY helpers.py /startup/
#COPY configurator.py /startup/
COPY *.lua /lua-scripts/
#COPY test-aliveness.py /probes/

Unfortunately the image will not run without the the docker-entrypoint.sh that I commented out due to problem building/errors.
=> ERROR [orthanc-no-vcpkg 32/40] COPY docker-entrypoint.sh /

root@ip-10-0-0-22:/configs# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
orthanc-img latest e94280d954f0 11 minutes ago 1.62GB
3b390dfe5494 2 hours ago 2.28GB
594c174e3db7 2 hours ago 2.36GB
bd292670f7c9 2 hours ago 2.31GB
root@ip-10-0-0-22:/configs# docker run -t -p 8042:8042 -p 4242:4242 orthanc-img
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “/docker-entrypoint.sh”: stat /docker-entrypoint.sh: no such file or directory: unknown.
ERRO[0001] error waiting for container:
root@ip-10-0-0-22:/configs# find / -name docker-entrypoint.sh
root@ip-10-0-0-22:/configs#

Hi David,

Before we spend too much time on this… Do you have any good reason not to use the pre-built images and build the images by yourself ?

You just need to type docker pull osimis/orthanc:23.3.0 and it’s done.

If you really really want to build the images by yourself, there is a local-build.sh script that handles the build correctly and sets the version right.

Concerning the 3 mercurial repo, they have moved. Just pull the latest version from the orthanc-builder repo.

Best regards,

Alain.

Alain,

Thanks for the insightful response.

“Do you have any good reason not to use the pre-built images and build the images by yourself ?”
Yes and no. Originally I had a server up and running with NGINX and lets Encrypt that worked well and all I wanted to do was to add a S3 bucket for backups. I was led to believe I needed to compile the S3 plug-in and then due to a few various issues was told that I needed to use docker for this task. So yes weeks later this has snow balled out of control.

Even though this was really more than I wanted to get involved in I saw this as an excellent opportunity to learn a real use docker case.
It would be great to get a good balance between just simply interfacing an S3 bucket for backups and get a little docker knowledge as well.

“If you really really want to build the images by yourself, there is a local-build.sh script that handles the build correctly and sets the version right.”
Just in case where do I find this script.

“Concerning the 3 mercurial repo, they have moved. Just pull the latest version from the orthanc-builder repo.”
In many cases I attempted to use -latest but unfortunately I got errors and needed to use exact revisions.

Thanks for your help.

David

The script is part of the orthanc-builder repo: https://github.com/orthanc-server/orthanc-builder

If you sync with git checkout 23.3.0, you’ll have exactly the same image as osimis/orthanc:23.3.0.

BR,

Alain