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

DigiDocCSharp in linux docker #509

Closed
aleksei-oecd opened this issue Nov 24, 2022 · 7 comments · Fixed by #505
Closed

DigiDocCSharp in linux docker #509

aleksei-oecd opened this issue Nov 24, 2022 · 7 comments · Fixed by #505

Comments

@aleksei-oecd
Copy link

libs from msi package seems to be invalid in docker (Debian based aspnet) context. Should deb package be installed instead of copying x64 contents of msi package to bin ?

@metsma
Copy link
Contributor

metsma commented Nov 25, 2022

It is not currently supported. There is PR #505

@aleksei-oecd
Copy link
Author

ok, great, would be the first tester when it's merged. Do you already have plans how it will be packaged ? And the main question when PR will be merged and released ?

@aleksei-oecd
Copy link
Author

if I clone the branch from PR and build it in Ubuntu/Debian with instructions from the main page will it produce the needed SWIG bindings ?

@metsma
Copy link
Contributor

metsma commented Nov 25, 2022

Maybe you can find artifacts from here https://github.com/open-eid/libdigidocpp/actions/runs/3443414903

@aleksei-oecd
Copy link
Author

aleksei-oecd commented Nov 28, 2022

I've tried compiling on ubuntu 20.04 using instructions from the main page and & this branch with swig bindings to other platforms. As a result, it seems it contains only digidoc-tool itself but no bindings for c#.

root@test-digidoc:~/digidoc/build# sudo make install
[  4%] Built target minizip
[  8%] Built target digidocpp_util
[ 50%] Built target digidocpp_priv
[ 97%] Built target digidocpp
[100%] Built target digidoc-tool
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libdigidocpp.so.3.14.11
-- Installing: /usr/local/lib/libdigidocpp.so.1
-- Installing: /usr/local/lib/libdigidocpp.so
-- Installing: /usr/local/include/digidocpp/Conf.h
-- Installing: /usr/local/include/digidocpp/Container.h
-- Installing: /usr/local/include/digidocpp/DataFile.h
-- Installing: /usr/local/include/digidocpp/Exception.h
-- Installing: /usr/local/include/digidocpp/Exports.h
-- Installing: /usr/local/include/digidocpp/Signature.h
-- Installing: /usr/local/include/digidocpp/XmlConf.h
-- Installing: /usr/local/etc/digidocpp/digidocpp.conf
-- Installing: /usr/local/etc/digidocpp/798.p12
-- Installing: /usr/local/bin/digidoc-tool
-- Set runtime path of "/usr/local/bin/digidoc-tool" to ""
-- Installing: /usr/local/share/man/man1/digidoc-tool.1
-- Installing: /usr/local/lib/pkgconfig/libdigidocpp.pc
-- Installing: /usr/local/etc/digidocpp/schema/conf.xsd
-- Installing: /usr/local/etc/digidocpp/schema/OpenDocument_manifest.xsd
-- Installing: /usr/local/etc/digidocpp/schema/xmldsig-core-schema.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v132-201601.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v132-201601-relaxed.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v141-201601.xsd
-- Installing: /usr/local/etc/digidocpp/schema/en_31916201v010101.xsd
-- Installing: /usr/local/etc/digidocpp/schema/xml.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020201_201601xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020101_additionaltypes_xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020101_sie_xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/OpenDocument_dsig.xsd
-- Installing: /usr/local/include/digidocpp/crypto/PKCS11Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/PKCS12Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/X509Cert.h

Please advice what should be done in order to compile these bindings as well.

@aleksei-oecd
Copy link
Author

Tried installing from Debian packages and seems swig bindings work fine with .net core 6 on Ubuntu/Debian

@metsma
Copy link
Contributor

metsma commented Nov 29, 2022

I've tried compiling on ubuntu 20.04 using instructions from the main page and & this branch with swig bindings to other platforms. As a result, it seems it contains only digidoc-tool itself but no bindings for c#.

root@test-digidoc:~/digidoc/build# sudo make install
[  4%] Built target minizip
[  8%] Built target digidocpp_util
[ 50%] Built target digidocpp_priv
[ 97%] Built target digidocpp
[100%] Built target digidoc-tool
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libdigidocpp.so.3.14.11
-- Installing: /usr/local/lib/libdigidocpp.so.1
-- Installing: /usr/local/lib/libdigidocpp.so
-- Installing: /usr/local/include/digidocpp/Conf.h
-- Installing: /usr/local/include/digidocpp/Container.h
-- Installing: /usr/local/include/digidocpp/DataFile.h
-- Installing: /usr/local/include/digidocpp/Exception.h
-- Installing: /usr/local/include/digidocpp/Exports.h
-- Installing: /usr/local/include/digidocpp/Signature.h
-- Installing: /usr/local/include/digidocpp/XmlConf.h
-- Installing: /usr/local/etc/digidocpp/digidocpp.conf
-- Installing: /usr/local/etc/digidocpp/798.p12
-- Installing: /usr/local/bin/digidoc-tool
-- Set runtime path of "/usr/local/bin/digidoc-tool" to ""
-- Installing: /usr/local/share/man/man1/digidoc-tool.1
-- Installing: /usr/local/lib/pkgconfig/libdigidocpp.pc
-- Installing: /usr/local/etc/digidocpp/schema/conf.xsd
-- Installing: /usr/local/etc/digidocpp/schema/OpenDocument_manifest.xsd
-- Installing: /usr/local/etc/digidocpp/schema/xmldsig-core-schema.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v132-201601.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v132-201601-relaxed.xsd
-- Installing: /usr/local/etc/digidocpp/schema/XAdES01903v141-201601.xsd
-- Installing: /usr/local/etc/digidocpp/schema/en_31916201v010101.xsd
-- Installing: /usr/local/etc/digidocpp/schema/xml.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020201_201601xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020101_additionaltypes_xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/ts_119612v020101_sie_xsd.xsd
-- Installing: /usr/local/etc/digidocpp/schema/OpenDocument_dsig.xsd
-- Installing: /usr/local/include/digidocpp/crypto/PKCS11Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/PKCS12Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/Signer.h
-- Installing: /usr/local/include/digidocpp/crypto/X509Cert.h

Please advice what should be done in order to compile these bindings as well.

I have to update building instructions on other platforms to instruct install swig tool
https://github.com/open-eid/libdigidocpp#windows

@kristelmerilain kristelmerilain linked a pull request Dec 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants