-
Notifications
You must be signed in to change notification settings - Fork 1
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
Don't use host-side tools that may not be installed #1
Comments
@rfay thank you for detailed review! We are going to use this Docker image in other integrations (clean docker set up, docksal, lando and others). So I would keep unzip and wget as part of it to make sure we have everything we need. |
Unpacking on the fly would be faster, the I think it can be called simply And you need to remove the previous installation on the new
post_install_actions:
- rm -rf diffy-worker*
- mkdir -p diffy-worker
- docker run -it --rm -v $(pwd)/diffy-worker:/diffy-worker --user $DDEV_UID:$DDEV_GID ddev/ddev-utilities bash -c "cd /diffy-worker && wget -qO- https://github.com/DiffyWebsite/diffy-worker/archive/refs/heads/main.tar.gz | tar xz --strip-components=1" |
The point is that these |
This was a good idea, seems to be working fine. |
Closing this issues as it is implemented. |
I see in
ddev-diffy/install.yaml
Lines 56 to 59 in c6b1e2d
You're using
wget
andunzip
. In many environments these are not installed by default.We sometimes use ddev/ddev-utilities to get around this class of problem. I note that it does have wget and unzip in it. It doesn't seem to have curl, which would be a good addition.
docker run -it --rm -v localpath:internalpath ddev/ddev-utilities wget <into_internal_path>
for exampleThe text was updated successfully, but these errors were encountered: