cossacklabs / themis

Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
https://www.cossacklabs.com/themis
Apache License 2.0
1.87k stars 143 forks source link

Can I install themis inside alpine? #839

Closed roccia closed 3 years ago

roccia commented 3 years ago

It seems themis installation only supprot debain , ubunut, I'm wondering if it works on alpine linux?

ilammy commented 3 years ago

Hey @roccia, thank you for your interest!

Yes, Themis works on Alpine Linux.

However, at the moment Cossack Labs does not build packages for Alpine Linux so you will need to compile Themis from source:

apk add git                       # git to pull the source
apk add bash make gcc musl-dev    # build system dependencies
apk add openssl openssl-dev       # Themis dependencies

# Pull source code from GitHub:
git clone https://github.com/cossacklabs/themis
cd themis

make               # build
make test          # run test suite
make install       # install to /usr/local

This builds and installs Themis Core libraries which are necessary to write C programs that use Themis. These libraries are also required for high-level language wrappers to work if you want to use them, but those are installed separately, via language-specific package managers.

Alpine Linux is not an officially fully supported platform, thus there are no official packages, no specific documentation for Alpine, and we don't do much testing there. However, it more or less “just works”.

vixentael commented 3 years ago

Thank you @ilammy!

Yes, unfortunately right now we don't build ready-to-use binaries for Alpine. After building and installing Themis Core (using steps @ilammy described above), you might need to install Themis language wrapper (Themis for python from pip, or for nodejs from npm, etc). Which languages do you plan to use?

https://docs.cossacklabs.com/themis/installation/installation-from-packages/#installing-themis-language-wrappers

roccia commented 3 years ago

thank you @ilammy @vixentael I'm using golang, so I just need install gothemis with go get right?

vixentael commented 3 years ago

First, install Themis Core on Alpine. Then, install Themis Go using go get.

Here are the docs: https://docs.cossacklabs.com/themis/languages/go/installation/

roccia commented 3 years ago

Got it Thank you