026997e725
* First pass at an all-in-one compose project * Sort out dependencies so uplink can build in docker * Added the final bits to make this work * Add readme for all-in-one * Fix sed to work on OS X and Linux * Make the readme for all-in-one better * Only bring up the satellite and uplink after fixing the mock overlay * Use a dummy value for mock overlay for now * Finishing touches * Fix url form for aws cli tool * Move files out of all-in-one directory to help with directory confusion. * Added a make target to make all-in-one even better
19 lines
371 B
Bash
Executable File
19 lines
371 B
Bash
Executable File
#!/bin/sh
|
|
set -euo pipefail
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-}"
|
|
|
|
if [[ -f "${CONF_PATH:-}" ]]; then
|
|
RUN_PARAMS="${RUN_PARAMS} --config \"${CONF_PATH}\""
|
|
else
|
|
if [[ ! -d $HOME/.storj/farmer ]]; then
|
|
./farmer setup
|
|
fi
|
|
fi
|
|
|
|
if [ -n "${SATELLITE_ADDR:-}" ]; then
|
|
RUN_PARAMS="${RUN_PARAMS} --kademlia.bootstrap-addr $SATELLITE_ADDR"
|
|
fi
|
|
|
|
exec ./farmer run $RUN_PARAMS "$@"
|