diff --git a/Dockerfile b/Dockerfile index c5b5752..684c01a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get update # Install packages #RUN apt-get -yq install rsync openssh-client -RUN apt-get -yq install unzip curl +RUN apt-get -yq install unzip curl python3 + # Label diff --git a/entrypoint.sh b/entrypoint.sh index 4d6546d..a64b2d4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,22 +6,14 @@ curl -L $CADZIP -o cadius.zip unzip -n cadius.zip mv cadius /usr/bin -cadius createvolume $INPUT_VOLUME_PATH $INPUT_VOLUME_NAME $INPUT_VOLUME_SIZE - if [ "$INPUT_INCLUDE_PRODOS" = "true" ]; then - apt-get install -y python3 echo "Grabbing ProDOS 2.4.2" curl -k -L https://mirrors.apple2.org.za/ftp.apple.asimov.net/images/masters/prodos/ProDOS_2_4_2.dsk -o ProDOS_2_4_2.dsk - #git clone https://github.com/digarok/dsk2po.git + echo "Convert DSK to PO" curl -k -L https://raw.githubusercontent.com/digarok/dsk2po/master/dsk2po.py -o dsk2po.py - echo "WHICH" - which python - which python3 - ls /usr/bin - echo "-----" - ls /bin /usr/bin/python3 dsk2po.py ProDOS_2_4_2.dsk - cadius extractfile ProDOS_2_4_2.po /PRODOS.2.4.2/PRODOS . - cadius extractfile ProDOS_2_4_2.po /PRODOS.2.4.2/BASIC.SYSTEM . + cadius extractvolume ProDOS_2_4_2.po . + echo "ProDOS 2.4.2 files available in ./PRODOS.2.4.2/ :" + ls ./PRODOS.2.4.2/ fi ls