nextgenhealthcare / connect-docker

Official Dockerfiles for Connect https://hub.docker.com/r/nextgenhealthcare/connect
Mozilla Public License 2.0
77 stars 51 forks source link

Build using dockerfile fails with error #25

Open IQHT-DGH opened 1 year ago

IQHT-DGH commented 1 year ago

I'm trying to build a new docker image using the dockerfile provided in this repo and the build fails with an error, I would be more than grateful for some pointers on how to resolved it. I am using Azure DevOps pipelines to build the image, and here is the output...

2022-11-13T13:18:35.7456978Z ##[section]Starting: Build 2022-11-13T13:18:35.7466798Z ============================================================================== 2022-11-13T13:18:35.7467160Z Task : Docker 2022-11-13T13:18:35.7467472Z Description : Build, tag, push, or run Docker images, or run a Docker command 2022-11-13T13:18:35.7467842Z Version : 0.209.0 2022-11-13T13:18:35.7468076Z Author : Microsoft Corporation 2022-11-13T13:18:35.7468517Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/docker 2022-11-13T13:18:35.7468951Z ============================================================================== 2022-11-13T13:18:35.9428612Z [command]/usr/bin/docker pull openjdk:11-jre 2022-11-13T13:18:47.7479924Z 11-jre: Pulling from library/openjdk 2022-11-13T13:18:47.7480373Z 001c52e26ad5: Pulling fs layer 2022-11-13T13:18:47.7480695Z d9d4b9b6e964: Pulling fs layer 2022-11-13T13:18:47.7480990Z 2068746827ec: Pulling fs layer 2022-11-13T13:18:47.7481297Z 8510da692cda: Pulling fs layer 2022-11-13T13:18:47.7481696Z b6d84395b34d: Pulling fs layer 2022-11-13T13:18:47.7482000Z bf03fea6c3ad: Pulling fs layer 2022-11-13T13:18:47.7482278Z 8510da692cda: Waiting 2022-11-13T13:18:47.7482557Z b6d84395b34d: Waiting 2022-11-13T13:18:47.7482820Z bf03fea6c3ad: Waiting 2022-11-13T13:18:47.7483118Z d9d4b9b6e964: Verifying Checksum 2022-11-13T13:18:47.7483422Z d9d4b9b6e964: Download complete 2022-11-13T13:18:47.7483736Z 2068746827ec: Verifying Checksum 2022-11-13T13:18:47.7484037Z 2068746827ec: Download complete 2022-11-13T13:18:47.7484353Z b6d84395b34d: Verifying Checksum 2022-11-13T13:18:47.7484669Z b6d84395b34d: Download complete 2022-11-13T13:18:47.7484970Z 8510da692cda: Verifying Checksum 2022-11-13T13:18:47.7485293Z 8510da692cda: Download complete 2022-11-13T13:18:47.7485593Z 001c52e26ad5: Verifying Checksum 2022-11-13T13:18:47.7485905Z 001c52e26ad5: Download complete 2022-11-13T13:18:47.7486205Z bf03fea6c3ad: Verifying Checksum 2022-11-13T13:18:47.7486518Z bf03fea6c3ad: Download complete 2022-11-13T13:18:47.7486825Z 001c52e26ad5: Pull complete 2022-11-13T13:18:47.7487621Z d9d4b9b6e964: Pull complete 2022-11-13T13:18:47.7487922Z 2068746827ec: Pull complete 2022-11-13T13:18:47.7488207Z 8510da692cda: Pull complete 2022-11-13T13:18:47.7488503Z b6d84395b34d: Pull complete 2022-11-13T13:18:47.7488785Z bf03fea6c3ad: Pull complete 2022-11-13T13:18:47.7489269Z Digest: sha256:356949c3125c4fa8104745e7ea92bd995da4567634e6599b470d2f972d13e0e2 2022-11-13T13:18:47.7498076Z Status: Downloaded newer image for openjdk:11-jre 2022-11-13T13:18:47.7498808Z docker.io/library/openjdk:11-jre 2022-11-13T13:18:47.7503252Z [command]/usr/bin/docker inspect openjdk:11-jre 2022-11-13T13:18:47.7902435Z [ 2022-11-13T13:18:47.7903172Z { 2022-11-13T13:18:47.7903893Z "Id": "sha256:362cda5d270e81aabfbbbaf8fe7ebcc7633f38b7952a9f6bc7ef68397662f0f9", 2022-11-13T13:18:47.7904475Z "RepoTags": [ 2022-11-13T13:18:47.7905233Z "openjdk:11-jre" 2022-11-13T13:18:47.7905693Z ], 2022-11-13T13:18:47.7906103Z "RepoDigests": [ 2022-11-13T13:18:47.7906726Z "openjdk@sha256:356949c3125c4fa8104745e7ea92bd995da4567634e6599b470d2f972d13e0e2" 2022-11-13T13:18:47.7907292Z ], 2022-11-13T13:18:47.7907714Z "Parent": "", 2022-11-13T13:18:47.7908150Z "Comment": "", 2022-11-13T13:18:47.7908726Z "Created": "2022-08-02T05:53:43.164587048Z", 2022-11-13T13:18:47.7909378Z "Container": "5a1edda18bf0fb152d4a1144648601ae7d8dc87e808ec7c6a860d4d6604f7d3b", 2022-11-13T13:18:47.7909981Z "ContainerConfig": { 2022-11-13T13:18:47.7911502Z "Hostname": "", 2022-11-13T13:18:47.7911958Z "Domainname": "", 2022-11-13T13:18:47.7912388Z "User": "", 2022-11-13T13:18:47.7912846Z "AttachStdin": false, 2022-11-13T13:18:47.7913314Z "AttachStdout": false, 2022-11-13T13:18:47.7913773Z "AttachStderr": false, 2022-11-13T13:18:47.7914229Z "Tty": false, 2022-11-13T13:18:47.7914666Z "OpenStdin": false, 2022-11-13T13:18:47.7915665Z "StdinOnce": false, 2022-11-13T13:18:47.7916112Z "Env": [ 2022-11-13T13:18:47.7916821Z "PATH=/usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", 2022-11-13T13:18:47.7917541Z "JAVA_HOME=/usr/local/openjdk-11", 2022-11-13T13:18:47.7918139Z "LANG=C.UTF-8", 2022-11-13T13:18:47.7918604Z "JAVA_VERSION=11.0.16" 2022-11-13T13:18:47.7919062Z ], 2022-11-13T13:18:47.7919461Z "Cmd": [ 2022-11-13T13:18:47.7919888Z "/bin/sh", 2022-11-13T13:18:47.7920358Z "-c", 2022-11-13T13:18:47.7925974Z "set -eux; \t\tarch=\"$(dpkg --print-architecture)\"; \tcase \"$arch\" in \t\t'amd64') \t\t\tdownloadUrl='https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.16%2B8/OpenJDK11U-jre_x64_linux_11.0.16_8.tar.gz'; \t\t\t;; \t\t'arm64') \t\t\tdownloadUrl='https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.16%2B8/OpenJDK11U-jre_aarch64_linux_11.0.16_8.tar.gz'; \t\t\t;; \t\t*) echo >&2 \"error: unsupported architecture: '$arch'\"; exit 1 ;; \tesac; \t\twget --progress=dot:giga -O openjdk.tgz \"$downloadUrl\"; \twget --progress=dot:giga -O openjdk.tgz.asc \"$downloadUrl.sign\"; \t\texport GNUPGHOME=\"$(mktemp -d)\"; \tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys EAC843EBD3EFDB98CC772FADA5CD6035332FA671; \tgpg --batch --keyserver keyserver.ubuntu.com --keyserver-options no-self-sigs-only --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \tgpg --batch --list-sigs --keyid-format 0xLONG CA5F11C6CE22644D42C6AC4492EF8D39DC13168F \t\t| tee /dev/stderr \t\t| grep '0xA5CD6035332FA671' \t\t| grep 'Andrew Haley'; \tgpg --batch --verify openjdk.tgz.asc openjdk.tgz; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\"; \t\tmkdir -p \"$JAVA_HOME\"; \ttar --extract \t\t--file openjdk.tgz \t\t--directory \"$JAVA_HOME\" \t\t--strip-components 1 \t\t--no-same-owner \t; \trm openjdk.tgz*; \t\t{ \t\techo '#!/usr/bin/env bash'; \t\techo 'set -Eeuo pipefail'; \t\techo 'trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth \"$JAVA_HOME/lib/security/cacerts\"'; \t} > /etc/ca-certificates/update.d/docker-openjdk; \tchmod +x /etc/ca-certificates/update.d/docker-openjdk; \t/etc/ca-certificates/update.d/docker-openjdk; \t\tfind \"$JAVA_HOME/lib\" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; \tldconfig; \t\tjava -Xshare:dump; \t\tjava --version" 2022-11-13T13:18:47.7960023Z ], 2022-11-13T13:18:47.7960438Z "Image": "sha256:936a12cd69e4cacd92a98b99107eb88568b0a1295c50f5c6e4d79f218f82f6ab", 2022-11-13T13:18:47.7960845Z "Volumes": null, 2022-11-13T13:18:47.7961113Z "WorkingDir": "", 2022-11-13T13:18:47.7961381Z "Entrypoint": null, 2022-11-13T13:18:47.7961636Z "OnBuild": null, 2022-11-13T13:18:47.7961894Z "Labels": null 2022-11-13T13:18:47.7962118Z }, 2022-11-13T13:18:47.7962374Z "DockerVersion": "20.10.12", 2022-11-13T13:18:47.7962636Z "Author": "", 2022-11-13T13:18:47.7962874Z "Config": { 2022-11-13T13:18:47.7963106Z "Hostname": "", 2022-11-13T13:18:47.7963361Z "Domainname": "", 2022-11-13T13:18:47.7963611Z "User": "", 2022-11-13T13:18:47.7963854Z "AttachStdin": false, 2022-11-13T13:18:47.7964141Z "AttachStdout": false, 2022-11-13T13:18:47.7964412Z "AttachStderr": false, 2022-11-13T13:18:47.7964679Z "Tty": false, 2022-11-13T13:18:47.7964924Z "OpenStdin": false, 2022-11-13T13:18:47.7965196Z "StdinOnce": false, 2022-11-13T13:18:47.7965450Z "Env": [ 2022-11-13T13:18:47.7965996Z "PATH=/usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", 2022-11-13T13:18:47.7966498Z "JAVA_HOME=/usr/local/openjdk-11", 2022-11-13T13:18:47.7967010Z "LANG=C.UTF-8", 2022-11-13T13:18:47.7967488Z "JAVA_VERSION=11.0.16" 2022-11-13T13:18:47.7967733Z ], 2022-11-13T13:18:47.7967954Z "Cmd": [ 2022-11-13T13:18:47.7968184Z "bash" 2022-11-13T13:18:47.7968392Z ], 2022-11-13T13:18:47.7968770Z "Image": "sha256:936a12cd69e4cacd92a98b99107eb88568b0a1295c50f5c6e4d79f218f82f6ab", 2022-11-13T13:18:47.7969160Z "Volumes": null, 2022-11-13T13:18:47.7969421Z "WorkingDir": "", 2022-11-13T13:18:47.7969673Z "Entrypoint": null, 2022-11-13T13:18:47.7969939Z "OnBuild": null, 2022-11-13T13:18:47.7970199Z "Labels": null 2022-11-13T13:18:47.7970500Z }, 2022-11-13T13:18:47.7970748Z "Architecture": "amd64", 2022-11-13T13:18:47.7971001Z "Os": "linux", 2022-11-13T13:18:47.7971257Z "Size": 302364726, 2022-11-13T13:18:47.7971525Z "VirtualSize": 302364726, 2022-11-13T13:18:47.7971803Z "GraphDriver": { 2022-11-13T13:18:47.7972039Z "Data": { 2022-11-13T13:18:47.7973182Z "LowerDir": "/var/lib/docker/overlay2/13602bb95b7ba3d255862356edfc11b439457e7de80f53c0152eec4c497363d1/diff:/var/lib/docker/overlay2/282b817aee808ff68393761476a9c5570e75758b28eb09a824793ade02b29e3e/diff:/var/lib/docker/overlay2/1d820239462a9eedfe2136839769a28297277bccc6601e5820816122b8a92cab/diff:/var/lib/docker/overlay2/c6e456b1205ae58c01f55902710835e93fd04651c9aeabfd976f60b47ce471cb/diff:/var/lib/docker/overlay2/d1f90259460f4c74cadda409ff0a3244f8e4eafa7379101e4a1f2a45f8065869/diff", 2022-11-13T13:18:47.7974524Z "MergedDir": "/var/lib/docker/overlay2/a8c8d11c9a8f0fcaffd8c1878cdeb9d9b037187f7cfbcd0abf6acac9c30afa2a/merged", 2022-11-13T13:18:47.7975157Z "UpperDir": "/var/lib/docker/overlay2/a8c8d11c9a8f0fcaffd8c1878cdeb9d9b037187f7cfbcd0abf6acac9c30afa2a/diff", 2022-11-13T13:18:47.7975757Z "WorkDir": "/var/lib/docker/overlay2/a8c8d11c9a8f0fcaffd8c1878cdeb9d9b037187f7cfbcd0abf6acac9c30afa2a/work" 2022-11-13T13:18:47.7976173Z }, 2022-11-13T13:18:47.7976410Z "Name": "overlay2" 2022-11-13T13:18:47.7976636Z }, 2022-11-13T13:18:47.7976860Z "RootFS": { 2022-11-13T13:18:47.7977094Z "Type": "layers", 2022-11-13T13:18:47.7977344Z "Layers": [ 2022-11-13T13:18:47.7977717Z "sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492", 2022-11-13T13:18:47.7978249Z "sha256:03127cdb479b0f1eb8a9b0df8e8d72ead24979728d3c84ff645611b9d8790f94", 2022-11-13T13:18:47.7978781Z "sha256:293d5db30c9fcf33b65fa033e427fdd118464f9ea0c2a343a478a6e89c29140e", 2022-11-13T13:18:47.7979301Z "sha256:5c384ea5f75201f4bd074559d2abedc93f5effbed2007ae4801a0366dd0313f6", 2022-11-13T13:18:47.7979829Z "sha256:3dccaa93bb0ea3e36e3c9e44d15c7ede938045d79a85066573692ab2b663a939", 2022-11-13T13:18:47.7980342Z "sha256:5a7e7a88063484cc4c99cce9535cacfa1aff5b515d5cf5e7876184fdf70a33c0" 2022-11-13T13:18:47.7980712Z ] 2022-11-13T13:18:47.7980921Z }, 2022-11-13T13:18:47.7981135Z "Metadata": { 2022-11-13T13:18:47.7981531Z "LastTagTime": "0001-01-01T00:00:00Z" 2022-11-13T13:18:47.7981808Z } 2022-11-13T13:18:47.7982011Z } 2022-11-13T13:18:47.7982199Z ] 2022-11-13T13:18:47.7994974Z [command]/usr/bin/docker build -f /home/vsts/work/r1/a/zzz-CI-MICROSERVICE-NextGenConnectMirth/MICROSERVICE-NextGenConnectMirth/Dockerfile -t myACR.azurecr.io/mirth-connect:v5716 --label com.azure.dev.image.system.teamfoundationcollectionuri=https://dev.azure.com/zzz/ --label com.azure.dev.image.release.releaseid=657 --label image.base.ref.name=openjdk:11-jre --label image.base.digest=sha256:356949c3125c4fa8104745e7ea92bd995da4567634e6599b470d2f972d13e0e2 /home/vsts/work/r1/a/_zzz-CI-MICROSERVICE-NextGenConnectMirth/MICROSERVICE-NextGenConnectMirth 2022-11-13T13:18:47.8235083Z Sending build context to Docker daemon 263.2kB 2022-11-13T13:18:47.8236034Z 2022-11-13T13:18:47.8626838Z Step 1/27 : FROM openjdk:11-jre 2022-11-13T13:18:47.8628204Z ---> 362cda5d270e 2022-11-13T13:18:47.8629041Z Step 2/27 : RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends locales && sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen 2022-11-13T13:18:47.8835697Z ---> Running in 699b2644b583 2022-11-13T13:18:48.6295038Z Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] 2022-11-13T13:18:48.6406500Z Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB] 2022-11-13T13:18:48.6409079Z Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] 2022-11-13T13:18:48.7414158Z Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB] 2022-11-13T13:18:48.8301919Z Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [194 kB] 2022-11-13T13:18:48.9266297Z Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB] 2022-11-13T13:18:49.8744319Z Fetched 8601 kB in 1s (6758 kB/s) 2022-11-13T13:18:50.3971180Z Reading package lists... 2022-11-13T13:18:50.9350905Z Reading package lists... 2022-11-13T13:18:51.0802967Z Building dependency tree... 2022-11-13T13:18:51.0803437Z Reading state information... 2022-11-13T13:18:51.2057240Z The following additional packages will be installed: 2022-11-13T13:18:51.2058018Z libc-l10n 2022-11-13T13:18:51.2237574Z The following NEW packages will be installed: 2022-11-13T13:18:51.2242491Z libc-l10n locales 2022-11-13T13:18:51.2644029Z 0 upgraded, 2 newly installed, 0 to remove and 21 not upgraded. 2022-11-13T13:18:51.2644539Z Need to get 4950 kB of archives. 2022-11-13T13:18:51.2644950Z After this operation, 20.9 MB of additional disk space will be used. 2022-11-13T13:18:51.2645826Z Get:1 http://deb.debian.org/debian bullseye-updates/main amd64 libc-l10n all 2.31-13+deb11u5 [865 kB] 2022-11-13T13:18:51.2749806Z Get:2 http://deb.debian.org/debian bullseye-updates/main amd64 locales all 2.31-13+deb11u5 [4086 kB] 2022-11-13T13:18:51.4080612Z debconf: delaying package configuration, since apt-utils is not installed 2022-11-13T13:18:51.4372700Z Fetched 4950 kB in 0s (74.4 MB/s) 2022-11-13T13:18:51.4500095Z Selecting previously unselected package libc-l10n. 2022-11-13T13:18:51.4522243Z (Reading database ... 2022-11-13T13:18:51.4522606Z (Reading database ... 5% 2022-11-13T13:18:51.4522900Z (Reading database ... 10% 2022-11-13T13:18:51.4523175Z (Reading database ... 15% 2022-11-13T13:18:51.4523465Z (Reading database ... 20% 2022-11-13T13:18:51.4523752Z (Reading database ... 25% 2022-11-13T13:18:51.4524025Z (Reading database ... 30% 2022-11-13T13:18:51.4524350Z (Reading database ... 35% 2022-11-13T13:18:51.4524619Z (Reading database ... 40% 2022-11-13T13:18:51.4524904Z (Reading database ... 45% 2022-11-13T13:18:51.4525174Z (Reading database ... 50% 2022-11-13T13:18:51.4525456Z (Reading database ... 55% 2022-11-13T13:18:51.4525740Z (Reading database ... 60% 2022-11-13T13:18:51.4532220Z (Reading database ... 65% 2022-11-13T13:18:51.4539251Z (Reading database ... 70% 2022-11-13T13:18:51.4549025Z (Reading database ... 75% 2022-11-13T13:18:51.4555306Z (Reading database ... 80% 2022-11-13T13:18:51.4566695Z (Reading database ... 85% 2022-11-13T13:18:51.4572142Z (Reading database ... 90% 2022-11-13T13:18:51.4580193Z (Reading database ... 95% 2022-11-13T13:18:51.4580519Z (Reading database ... 100% 2022-11-13T13:18:51.4580897Z (Reading database ... 7890 files and directories currently installed.) 2022-11-13T13:18:51.4588572Z Preparing to unpack .../libc-l10n_2.31-13+deb11u5_all.deb ... 2022-11-13T13:18:51.4603300Z Unpacking libc-l10n (2.31-13+deb11u5) ... 2022-11-13T13:18:51.5507505Z Selecting previously unselected package locales. 2022-11-13T13:18:51.5522422Z Preparing to unpack .../locales_2.31-13+deb11u5_all.deb ... 2022-11-13T13:18:51.5536044Z Unpacking locales (2.31-13+deb11u5) ... 2022-11-13T13:18:51.9554168Z Setting up libc-l10n (2.31-13+deb11u5) ... 2022-11-13T13:18:51.9581326Z Setting up locales (2.31-13+deb11u5) ... 2022-11-13T13:18:52.0313834Z debconf: unable to initialize frontend: Dialog 2022-11-13T13:18:52.0314374Z debconf: (TERM is not set, so the dialog frontend is not usable.) 2022-11-13T13:18:52.0314843Z debconf: falling back to frontend: Readline 2022-11-13T13:18:52.0321252Z debconf: unable to initialize frontend: Readline 2022-11-13T13:18:52.0323186Z debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) 2022-11-13T13:18:52.0324739Z debconf: falling back to frontend: Teletype 2022-11-13T13:18:52.4335491Z Generating locales (this might take a while)... 2022-11-13T13:18:52.4422672Z Generation complete. 2022-11-13T13:18:52.4870050Z Generating locales (this might take a while)... 2022-11-13T13:18:54.2773795Z en_US.UTF-8... done 2022-11-13T13:18:54.2784326Z Generation complete. 2022-11-13T13:18:55.3148049Z Removing intermediate container 699b2644b583 2022-11-13T13:18:55.3149267Z ---> ebfa0406d0bb 2022-11-13T13:18:55.3149758Z Step 3/27 : ARG ARTIFACT 2022-11-13T13:18:55.3438985Z ---> Running in f1a557a4d292 2022-11-13T13:18:56.0283862Z Removing intermediate container f1a557a4d292 2022-11-13T13:18:56.0284616Z ---> 0819d72744b7 2022-11-13T13:18:56.0284956Z Step 4/27 : ENV LANG en_US.UTF-8 2022-11-13T13:18:56.0419776Z ---> Running in 5b3dc0c57432 2022-11-13T13:18:57.0296623Z Removing intermediate container 5b3dc0c57432 2022-11-13T13:18:57.0297331Z ---> 6920b6753dfe 2022-11-13T13:18:57.0297690Z Step 5/27 : ENV LANGUAGE en_US:en 2022-11-13T13:18:57.0486741Z ---> Running in 851c1cd0ef64 2022-11-13T13:18:58.0335553Z Removing intermediate container 851c1cd0ef64 2022-11-13T13:18:58.0354339Z ---> a32e260f663c 2022-11-13T13:18:58.0354922Z Step 6/27 : ENV LC_ALL en_US.UTF-8 2022-11-13T13:18:58.0487009Z ---> Running in b45dc486f7f9 2022-11-13T13:18:59.0342444Z Removing intermediate container b45dc486f7f9 2022-11-13T13:18:59.0343171Z ---> af0f08b461c8 2022-11-13T13:18:59.0343661Z Step 7/27 : RUN curl -SL $ARTIFACT | tar -xzC /opt && mv "/opt/Mirth Connect" /opt/connect 2022-11-13T13:18:59.0652668Z ---> Running in c5c0ed9876d5 2022-11-13T13:18:59.2832278Z curl: no URL specified! 2022-11-13T13:18:59.2837917Z curl: try 'curl --help' or 'curl --manual' for more information 2022-11-13T13:18:59.2857664Z  2022-11-13T13:18:59.2857970Z gzip: stdin: unexpected end of file 2022-11-13T13:18:59.2865247Z tar: Child returned status 1 2022-11-13T13:18:59.2865615Z tar: Error is not recoverable: exiting now 2022-11-13T13:18:59.4333913Z The command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt && mv "/opt/Mirth Connect" /opt/connect' returned a non-zero code: 2 2022-11-13T13:18:59.4389879Z ##[error]The command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt && mv "/opt/Mirth Connect" /opt/connect' returned a non-zero code: 2 2022-11-13T13:18:59.4407127Z ##[error]The process '/usr/bin/docker' failed with exit code 2 2022-11-13T13:18:59.4481149Z ##[section]Finishing: Build

pladesma commented 1 year ago

In the Dockerfile can you try replacing

RUN curl -SL $ARTIFACT \
    | tar -xzC /opt \
    && mv "/opt/Mirth Connect" /opt/connect

with

RUN curl -SL $ARTIFACT | tar -xzC /opt
RUN mv "/opt/Mirth Connect" /opt/connect

so that we can narrow down which command is failing?

Also, your question may be more appropriate as a Discussion post rather than an Issue, but I'll leave it open for now in case there is a defect.

IQHT-DGH commented 1 year ago

In the Dockerfile can you try replacing

RUN curl -SL $ARTIFACT \
    | tar -xzC /opt \
    && mv "/opt/Mirth Connect" /opt/connect

with

RUN curl -SL $ARTIFACT | tar -xzC /opt
RUN mv "/opt/Mirth Connect" /opt/connect

so that we can narrow down which command is failing?

Also, your question may be more appropriate as a Discussion post rather than an Issue, but I'll leave it open for now in case there is a defect.

Thank you, and apologies if this was posted in the wrong place. Having made the suggested change, here is the output..

2022-11-21T14:25:01.4780681Z The command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt' returned a non-zero code: 2 2022-11-21T14:25:01.4873971Z ##[error]The command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt' returned a non-zero code: 2 2022-11-21T14:25:01.4891814Z ##[error]The process '/usr/bin/docker' failed with exit code 2 2022-11-21T14:25:01.4898451Z ##[section]Finishing: Build

IQHT-DGH commented 1 year ago

In the Dockerfile can you try replacing

RUN curl -SL $ARTIFACT \
    | tar -xzC /opt \
    && mv "/opt/Mirth Connect" /opt/connect

with

RUN curl -SL $ARTIFACT | tar -xzC /opt
RUN mv "/opt/Mirth Connect" /opt/connect

so that we can narrow down which command is failing? Also, your question may be more appropriate as a Discussion post rather than an Issue, but I'll leave it open for now in case there is a defect.

Thank you, and apologies if this was posted in the wrong place. Having made the suggested change, here is the output..

2022-11-21T14:25:01.4780681Z �[0mThe command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt' returned a non-zero code: 2 2022-11-21T14:25:01.4873971Z ##[error]The command '/bin/sh -c curl -SL $ARTIFACT | tar -xzC /opt' returned a non-zero code: 2 2022-11-21T14:25:01.4891814Z ##[error]The process '/usr/bin/docker' failed with exit code 2 2022-11-21T14:25:01.4898451Z ##[section]Finishing: Build

Just wondering whether there is any update on this, or any more info required from my side to resolve this issue and build the container?

pladesma commented 1 year ago

Just to clarify, are you using the docker-compose.yml file to build the image? By that, I mean running docker-compose build. When building this way, it grabs the artifact_url from the .env file, which it then uses to populate the ARTIFACT variable in each Dockerfile.

If instead you're building an individual Dockerfile (e.g. docker build -f Dockerfile -t myimage:mytag), you'll need to modify the curl statement in that Dockerfile to download from the artifact URL. For example, in Dockerfile, you'd change

RUN curl -SL $ARTIFACT \
    | tar -xzC /opt \
    && mv "/opt/Mirth Connect" /opt/connect

to

RUN curl -SL https://s3.amazonaws.com/downloads.mirthcorp.com/connect/4.2.0.b2825/mirthconnect-4.2.0.b2825-unix.tar.gz \
    | tar -xzC /opt \
    && mv "/opt/Mirth Connect" /opt/connect