Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle images created on windows machines #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.debian.escu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.debian.rapids
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.debian.spark
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.debian.transformers
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dockerfiles/Dockerfile.redhat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down