Giter Club home page Giter Club logo

Comments (6)

Zero-Xiong avatar Zero-Xiong commented on September 28, 2024 2

changes as below can solve the issue (works in Windows 11)

RUN rm -f Bundle/dist/*

RUN sed -i 's/\r$//' mvnw

RUN ./mvnw clean package
RUN mkdir ./Runtime && unzip Server/dist/OpenAS2Server-*.zip -d Runtime
RUN ./mvnw clean

from openas2app.

uhurusurfa avatar uhurusurfa commented on September 28, 2024

Try running the command on its own to get a better idea of what is failing:
./mvnw clean package

from openas2app.

igwtech avatar igwtech commented on September 28, 2024

from openas2app.

apeiris avatar apeiris commented on September 28, 2024

fork @ https://github.com/anbansal/OpenAs2App has the solution implemented with sed command. It is because of line-ending character mismatch when bundling the docker image

from openas2app.

uhurusurfa avatar uhurusurfa commented on September 28, 2024

Not sure if you are using the OpenAS2 official package or a fork but hethis command:
sed -i 's/\r$//' mvnw
... has no effect because the file ( mvnw in the root of the OpenAS2 repository) does not contain \r characters in the official OpenAS2 deployment and never has had.

from openas2app.

hbunjes avatar hbunjes commented on September 28, 2024

Just a mention why this is necessary on Windows: The default of Git for Windows is to set line endings of text files to "CR LF" on pull. Pushing the files will replace the line ending back to "LF", see https://docs.github.com/de/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.

This is always an issue with Docker images if the files are just copied into the image as the line ending is "CR LF" then.

There are typically two ways to handle this:

  • Set the line endings to LF in the repo via .gitattributes ("* text=auto eol=lf" in the first line)
  • Replace "CR LF" to "LF" as shown with sed above during build

from openas2app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.