Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to open logs on Docker deploy - UNIX
Signed-off-by: coduz <alberto.codutti@eurotech.com>
- Loading branch information
Showing
4 changed files
with
88 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
############################################################################### | ||
# Copyright (c) 2016, 2020 Red Hat Inc and others | ||
# | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.eclipse.org/legal/epl-v10.html | ||
# | ||
# Contributors: | ||
# Red Hat Inc - initial API and implementation | ||
# Eurotech | ||
############################################################################### | ||
|
||
set -e | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
docker_common() { | ||
. ${SCRIPT_DIR}/docker-common.sh | ||
} | ||
|
||
docker_logs() { | ||
docker-compose -f ${SCRIPT_DIR}/../compose/docker-compose.yml logs -f | ||
} | ||
|
||
docker_common | ||
|
||
echo "Opening Eclipse Kapua logs..." | ||
docker_logs || { echo "Opening Eclipse Kapua logs... ERROR!"; exit 1; } | ||
echo "Opening Eclipse Kapua logs... DONE!" |
This file contains 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