microscaling/imagelayers

wrong output

Closed this issue · 2 comments

I found several issues in imagelayers.io, hope I raise the ticket in right place.

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock centurylink/dockerfile-from-image k3ck3c/captvty > report-1.txt

manually copy its output from https://imagelayers.io/?images=k3ck3c%2Fcaptvty:latest  > report-2.txt

$ diff report-1.txt report-2.txt
0a1
> FROM scratch
4c5
< RUN sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list

---
> RUN sed -i 's/^#\s*\(deb.*universe\$/\1/g' /etc/apt/sources.list
6c7
< CMD [/bin/bash]

---
> CMD /bin/bash
22c23
< RUN echo 'gg ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/gg

---
> RUN echo 'gg ALL=(ALL NOPASSWD:ALL' >> /etc/sudoers.d/gg
31,32c32,33
< RUN version=$(wget -q -O- http://captvty.fr/ | grep -o -m 1 'captvty-.*.zip' | sed 's/captvty-\(.*\).zip/\1/') && wget -O /dev/null http://captvty.fr/ && wget -O /tmp/Captvty.zip http://captvty.fr/?captvty-$version.zip && unzip -d ~/Captvty /tmp/Captvty.zip && rm /tmp/Captvty.zip
< CMD ["/bin/sh" "-c" "WINEDEBUG=fixme-all wine /home/gg/Captvty/Captvty.exe"]

---
> RUN version=$(wget -q -O- http://captvty.fr/ | grep -o -m 1 'captvty-.*.zip' | sed 's/captvty-\(.*\.zip/\1/' && wget -O /dev/null http://captvty.fr/ && wget -O /tmp/Captvty.zip http://captvty.fr/?captvty-$version.zip && unzip -d ~/Captvty /tmp/Captvty.zip && rm /tmp/Captvty.zip
> CMD "/bin/sh" "-c" "WINEDEBUG=fixme-all wine /home/gg/Captvty/Captvty.exe"

For the rest difference, all looks same issue, one ) or "[]" is missed

@SydOps - please submit a PR and we will incorporate your fixes

I have updated my question, there are the problems in imagelayers with > lines.

But I don't know how to fix it. If you can give hints and point to the right files, maybe I can help.