Comments (2)
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:
- Open a shell
ansible-silo --shell
- Install build requiremtns
sudo apk add --no-cache gcc libffi-dev python2-dev musl musl-dev musl-utils
- 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.
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)
- Ansible Vault Password File Not Being Found HOT 5
- Created "bundle" not building / operating correctly HOT 2
- How to create files from bundle on local filesystem? HOT 9
- Odd Bundle Inconsistencies HOT 7
- Weird python behaviors in created bundle HOT 2
- Missing ansible-inventory command HOT 2
- Unable to install on Ubuntu 16.10 HOT 2
- option -tty incompatible with vagrant HOT 4
- adding rsync to use synchronize ansible module HOT 3
- Adding dig lookup support in Ansible Silo HOT 2
- ImportError: No module named awscli.clidriver HOT 1
- ImportError: No module named awscli.clidriver HOT 2
- Would this be better with a more explicit `run`? HOT 2
- Tests fail when ~/.ssh/known_hosts does not exist
- Slice of a second start-time
- did someone already port it to windows?? HOT 1
- Enforce Ansible version within container
- Move to python3
- Maintained ? HOT 4
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 ansible-silo.