Save only latest ENTRYPOINT and CMD command and move it to the end of the file
if command COPY or ADD has patter like file/folder/multi:<some hash value> in <destination> as we can't know what is file/folder/multi:<some hash value>, let's replace in with <source-location> placeholder
UI
Add to the tool image version history page a button which will generate and download Dockerfile for selected tool version.
User should be asked to provide from parameter for the Dockerfile
User should be able to easily compose dockerfile based on tool image history.
To be able to implement this, lets do the following:
Server
new method GET
/tool/dockerfile
with parameters:id
- toolIdversion
- toolVersionfrom
- string representing the image name to be used inFROM
Dockerfile directiveThis method should return Dockerfile to download with the following rules:
Should be transformed to:
RUN
directive to the lineENTRYPOINT
andCMD
command and move it to the end of the fileCOPY
orADD
has patter likefile/folder/multi:<some hash value> in <destination>
as we can't know what isfile/folder/multi:<some hash value>
, let's replace in with<source-location>
placeholderUI
Add to the tool image version history page a button which will generate and download Dockerfile for selected tool version.
from
parameter for the Dockerfile