mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 11:31:54 +08:00

* Add initialization directory support to Docker image * Add sharness test, fix bugs in init script Fixed in init script: - Added some missing quotes around expansions - Fixed INIT_ARGS to not pass any args if IPFS_PROFILE isn't specified - Use printf instead of "echo -e" - Only run scripts in top-level of init dir - Handle filenames correctly when finding init scripts (by using find + xargs) * chore: docker cleanup cleans up containers and images (useful when run on developer machine) * remove container init documentation from README There is already IPFS Docker documentation where this should live: https://docs.ipfs.io/how-to/run-ipfs-inside-docker/ Co-authored-by: Caian <caian@ggaunicamp.com> Co-authored-by: Marcin Rataj <lidel@lidel.org> Co-authored-by: Gus Eggert <gus@gus.dev>
15 lines
256 B
Bash
Executable File
15 lines
256 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# used by the container startup script for running initialization scripts
|
|
|
|
script="$1"
|
|
if [ -x "$script" ] ; then
|
|
printf "Executing '%s'...\n" "$script"
|
|
"$script"
|
|
else
|
|
printf "Sourcing '%s'...\n" "$script"
|
|
. "$script"
|
|
fi
|