Git Product home page Git Product logo

Comments (2)

udondan avatar udondan commented on May 27, 2024

As always, sorry for the delay...

I'm not in general against adding bcrypt to the base image. The problem here lies more in the apline packages, which only are available in their latest version - the reason why the base image exists in the first place. When building a new base image all package versions would need to be updated to the latest available, which at very least would bring Silo to version 3. We can add bcrypt later when we need to re-build the base image for other reasons.

But, good news! The solution for your problem is actually quite simnple.

If you need bcrypt in general, you can install it like this:

  1. Open a shell
    ansible-silo --shell
  2. Install build requiremtns
    sudo apk add --no-cache gcc libffi-dev python2-dev musl musl-dev musl-utils
  3. Install bcrypt
    pip install bcrypt>=3.1.3

No need to clean up behind you. All files created by apk add will not persist when the container exits. pip, though, is configured to install into your docker volume in /silo/userspace/lib and therefore will be available in all ansible calls later on.

Silo bundles don't use volumes. If you need bcrypt in a bundle you need to add the installation instructions to your Dockerfile like so:

RUN apk add --no-cache gcc \
                       libffi-dev \
                       python2-dev \
                       musl \
                       musl-dev \
                       musl-utils && \
    pip install bcrypt>=3.1.3 && \
    apk del --no-cache gcc \
                       libffi-dev \
                       python2-dev \
                       musl-dev

Does this help?


I'll leave this ticket open as this should get better documented.

from ansible-silo.

bdlamprecht avatar bdlamprecht commented on May 27, 2024

Similar to issue #54:

I've been able to solve this by rebuilding grpn/ansible-silo-base:3.0.0 and grpn/ansible-silo:3.0.0.
I'm still working through some issues, but when I'm ready, I will submit a PR.

from ansible-silo.

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.