Skip to content
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

fix: switch deploy to compose #29

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ download_compose_and_change_owner(){
local max_attempts=5
local attempt=1

sudo -u km mkdir -p $SEKIN_DIR

while [ $attempt -le $max_attempts ]; do
echo "Attempt $attempt: Downloading compose.yml from ${COMPOSE_URL}..."
curl -o "${COMPOSE_PATH}" "${COMPOSE_URL}"
Expand Down Expand Up @@ -224,8 +226,8 @@ main() {
install_docker_compose
add_user_km
add_km_to_docker_group
# download_compose_and_change_owner
clone_repo_as_km
download_compose_and_change_owner
# clone_repo_as_km
run_docker_compose_as_km
}

Expand Down
Loading