docker run --rm \
-v "$VOLUME_FROM":/from:ro \
-v "$VOLUME_TO":/to \
-u root alpine \
sh -c 'rm -rf /to 2>/dev/null; cd /from; cp -av . /to'
Example, how to remove argument from http request.
Replace requests like:
DELETE /v1/path/FILE?multipart-manifest=delete HTTP/1.1"
with:
DELETE /v1/path/FILE?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker project for antminer-monitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed_escape() { sed -e 's/[]\/$*.^|[]/\\&/g'; }; | |
replace_env() { | |
local FILE=$1; shift | |
local ENV=$1; shift | |
local VAL=$1 | |
[ -f "$FILE" ] || ( | |
echo "File not found $FILE" >&2 |