Comments (6)
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.
Try running the command on its own to get a better idea of what is failing:
./mvnw clean package
from openas2app.
from openas2app.
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.
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.
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)
- Working with content-type and file extensions HOT 3
- v3.7.0 overwrites partnerships.xml on recreation of container HOT 7
- file type not valid error due to file.type being empty HOT 2
- WebUI Messages contains timestamps like 2023-28-11 11:54:07 HOT 2
- Self signed SSL certs in Docker HOT 1
- Error : OpenAS2Exception: Error occurred:: no cipher suites in common HOT 14
- WebUI network error HOT 2
- Image does not start with custom private key or keystore HOT 2
- Avoid running as root HOT 1
- Embedded database maintenance HOT 1
- Content-Length header isn't populated on synchronous MDN sent after receiving a file HOT 2
- Typo in the documentation ? HOT 1
- Unable to log in via WebUI HOT 11
- On Ubuntu 20.04.6 LTS with jdk1.8.0_92 Server not starting. HOT 1
- Issue: file stored on sent dir on resend, message ID pendingMDN issue HOT 4
- [Feature?] Parsing and Synchronize files to Partners after MDN HOT 2
- Response Code: 411 Length Required OpenAS2 3.9.1 HOT 1
- Filename header decoding issue HOT 6
- [ERROR] java.lang.NullpointerException HOT 1
- Can't login to WebUI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openas2app.