Skip to content

Commit

Permalink
Merge branches 'master' and 'master' of https://github.com/rohansx/Xline
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansx committed Mar 16, 2024
2 parents 6817913 + d9607f9 commit 96134ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/quick_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,9 @@ run_container() {
size=${1}
image="ghcr.io/xline-kv/xline:latest"
for ((i = 1; i <= ${size}; i++)); do
mount_point="-v ${DIR}:/mnt"
if [ -n "$LOG_PATH" ]; then
mkdir -p ${LOG_PATH}/node${i}
mount_point="${mount_point} -v ${LOG_PATH}/node${i}:/var/log/xline"
fi
docker run -d -it --rm --name=node${i} --net=xline_net \
--ip=${SERVERS[$i]} --cap-add=NET_ADMIN --cpu-shares=1024 \
-m=512M ${mount_point} ${image} bash &
-m=512M -v ${DIR}:/mnt ${image} bash &
done
docker run -d -it --rm --name=client \
--net=xline_net --ip=${SERVERS[0]} --cap-add=NET_ADMIN \
Expand Down Expand Up @@ -103,7 +98,6 @@ if [ -z "$1" ]; then
elif [ "$1" == "stop" ]; then
stop_all
exit 0
>>>>>>> ef29834 (chore: mount LOG_PATH as xline container log dir)
else
start_environment
fi

0 comments on commit 96134ac

Please sign in to comment.