diff --git a/dockerfiles/Dockerfile.debian b/dockerfiles/Dockerfile.debian index 3af0e36..79253f1 100644 --- a/dockerfiles/Dockerfile.debian +++ b/dockerfiles/Dockerfile.debian @@ -51,6 +51,13 @@ COPY ./bootstrap_scripts/bootstrap_fast.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN apt-get update && apt-get install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/* + # Install local DSDL supporting functions RUN mkdir /dltk/packages COPY package-dsdlsupport/dist/dsdlsupport-1.0.0.tar.gz /dltk/packages/dsdlsupport-1.0.0.tar.gz diff --git a/dockerfiles/Dockerfile.debian.escu b/dockerfiles/Dockerfile.debian.escu index 16915af..fac4486 100644 --- a/dockerfiles/Dockerfile.debian.escu +++ b/dockerfiles/Dockerfile.debian.escu @@ -50,6 +50,13 @@ COPY ./bootstrap_scripts/bootstrap_fast.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN apt-get update && apt-get install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/* + # Install local DSDL supporting functions RUN mkdir /dltk/packages COPY package-dsdlsupport/dist/dsdlsupport-1.0.0.tar.gz /dltk/packages/dsdlsupport-1.0.0.tar.gz diff --git a/dockerfiles/Dockerfile.debian.rapids b/dockerfiles/Dockerfile.debian.rapids index 3e409c0..c0a2049 100644 --- a/dockerfiles/Dockerfile.debian.rapids +++ b/dockerfiles/Dockerfile.debian.rapids @@ -48,6 +48,13 @@ COPY bootstrap_scripts/bootstrap_rapids.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN apt-get update && apt-get install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/* + # Install local DSDL supporting functions RUN mkdir /dltk/packages COPY package-dsdlsupport/dist/dsdlsupport-1.0.0.tar.gz /dltk/packages/dsdlsupport-1.0.0.tar.gz diff --git a/dockerfiles/Dockerfile.debian.spark b/dockerfiles/Dockerfile.debian.spark index 098538b..e8fa468 100644 --- a/dockerfiles/Dockerfile.debian.spark +++ b/dockerfiles/Dockerfile.debian.spark @@ -53,6 +53,13 @@ COPY ./bootstrap_scripts/bootstrap_fast.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN apt-get update && apt-get install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/* + # Install local DSDL supporting functions RUN mkdir /dltk/packages COPY package-dsdlsupport/dist/dsdlsupport-1.0.0.tar.gz /dltk/packages/dsdlsupport-1.0.0.tar.gz diff --git a/dockerfiles/Dockerfile.debian.transformers b/dockerfiles/Dockerfile.debian.transformers index e8967a2..7d1b85b 100644 --- a/dockerfiles/Dockerfile.debian.transformers +++ b/dockerfiles/Dockerfile.debian.transformers @@ -45,6 +45,13 @@ COPY ./bootstrap_scripts/bootstrap_transformers.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN apt-get update && apt-get install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/* + # copy and expand transformer content ADD basemodels/class_en.tar.gz /dltk/app/model/data/classification/en ADD basemodels/class_jp.tar.gz /dltk/app/model/data/classification/jp diff --git a/dockerfiles/Dockerfile.redhat b/dockerfiles/Dockerfile.redhat index ba14f7a..462447c 100644 --- a/dockerfiles/Dockerfile.redhat +++ b/dockerfiles/Dockerfile.redhat @@ -50,6 +50,13 @@ COPY ./bootstrap_scripts/bootstrap_fast.sh /dltk/ COPY app /dltk/app COPY notebooks /dltk/notebooks +# Install dos2unix, then convert windows-like line endings to linux-like +# The bootstrap script won't run otherwise if the image was build on a windows machine +# Finally, remove dos2unix again +RUN yum install -y dos2unix +RUN find /dltk/ -name 'bootstrap_*.sh' -type f -exec dos2unix {} \; +RUN yum remove -y dos2unix && yum clean all + # Install local DSDL supporting functions RUN mkdir /dltk/packages COPY package-dsdlsupport/dist/dsdlsupport-1.0.0.tar.gz /dltk/packages/dsdlsupport-1.0.0.tar.gz