I have used your dockerfile but it did not help reducing the image size. It appears the "ADD" command could not be combined with RUN command, so, I have used curl to get the file from internal ftp server and combined the pkg download, install, and temporary dir removal steps all into one RUN command.
Thank you for the reply. The First command did save the cookie but the second wget still resulted in stream not found error. Please see below. Am I doing it wrong?
I am using the Dockerfile steps suggested in https://github.com/zrml/ccontainermain. I have noticed a problem with the created Docker image size, with full 2016 HealthShare install, the image size is coming out at around 11 GB. I have removed the temporary install dir which should reduce 5+ GB but it did not reduce the Docker image size from 11 GB. It appears the the way the Docker containers work "the ADD package, the Cache Install and the Dir remove steps were executed in different layers". It appears the solution is to pkg download, extract, cache install, and remove temporary install dir, all these steps should happen in one container to reduce the image size. The solution here is to use either wget/curl to download image from wrc.intersystems.com but that did not work for me. I do have proper access but I am not able to download the package using wget/curl. Would you be able to help with that?
Thanks
Prasad
Ex: This is the package that I am trying to download.
go to post
Hi Dmitry,
I have used your dockerfile but it did not help reducing the image size. It appears the "ADD" command could not be combined with RUN command, so, I have used curl to get the file from internal ftp server and combined the pkg download, install, and temporary dir removal steps all into one RUN command.
Thanks
Prasad
go to post
Hi,
The above step worked. I have used internal ftp server.
Thanks
Prasad
go to post
Hi,
Thank you for the reply. The First command did save the cookie but the second wget still resulted in stream not found error. Please see below. Am I doing it wrong?
Thanks
Prasad
ubuntu@ip-172-31-34-120:/tmp$ wget --load-cookies cookies.txt --content-disposition 'https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/FieldTes...'
--2016-10-08 03:30:01-- https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/FieldTes...
Resolving wrc.intersystems.com (wrc.intersystems.com)... 38.97.67.139
Connecting to wrc.intersystems.com (wrc.intersystems.com)|38.97.67.139|:443... connected.
HTTP request sent, awaiting response... 404 Stream Not Found
2016-10-08 03:30:02 ERROR 404: Stream Not Found.
ubuntu@ip-172-31-34-120:/tmp$
go to post
Hi,
I am using the Dockerfile steps suggested in https://github.com/zrml/ccontainermain. I have noticed a problem with the created Docker image size, with full 2016 HealthShare install, the image size is coming out at around 11 GB. I have removed the temporary install dir which should reduce 5+ GB but it did not reduce the Docker image size from 11 GB. It appears the the way the Docker containers work "the ADD package, the Cache Install and the Dir remove steps were executed in different layers". It appears the solution is to pkg download, extract, cache install, and remove temporary install dir, all these steps should happen in one container to reduce the image size. The solution here is to use either wget/curl to download image from wrc.intersystems.com but that did not work for me. I do have proper access but I am not able to download the package using wget/curl. Would you be able to help with that?
Thanks
Prasad
Ex: This is the package that I am trying to download.
HS-2016.1.2.208.0-hscore15.01_hsaa15_hspi15_hsviewer15.01_linkage15-b6402-lnxrhx64.tar.gz
Commands used with real password:
1)curl -v -O -u pkosuru@j2interactive.com:PASSWORD https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/distrib/...
2)wget --no-check-certificate --user=pkosuru@j2interactive.com --password=PASSWORD "https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/distrib/..."