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

Not necessarily installation of libindy_vdr.so and ibaries_askar.so into $HOME/.local/lib #34

Open
vitalrev opened this issue Jul 6, 2022 · 0 comments

Comments

@vitalrev
Copy link

vitalrev commented Jul 6, 2022

In next Dockerfile...

indy-vdr python wrapper already contains the cargo library libindy_vdr.so, see snippet:
cp target/*/libindy_vdr.so wrappers/python/indy_vdr && \

So, the copy to $HOME/.local/lib is not necessary:
cp target/*/libindy_vdr.so "$HOME/.local/lib" && \

The whole snippet:

# Build and install indy-vdr
# Ensure libindy_vdr.so is included in the python package to avoid 'Library not loaded from python package' messages.
WORKDIR $HOME/indy-vdr
RUN cd indy-vdr* && \
    cargo build ${indy_build_flags} && \
    cp target/*/libindy_vdr.so "$HOME/.local/lib" && \
    cp target/*/libindy_vdr.so wrappers/python/indy_vdr && \
    cp target/*/indy-vdr-proxy "$HOME/.local/bin" && \
    cargo clean

I tested it:
created a new docker image based on von-image:next-2 and removed the libindy_vdr.so from $HOME/.local/lib
RUN rm -rf /home/indy/.local/lib/libindy_vdr.so
and, indy-vdr works fine (in context of tails-server), see pull request in tails-server bcgov/indy-tails-server#38

I think, the same for ibindy_credx.so and libaries_askar.so, this cargo libraries are also parts of python wrappers

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

No branches or pull requests

1 participant