Skip to content

Commit

Permalink
getting latest resources from git
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <gaurav.gahlot19@gmail.com>
  • Loading branch information
gauravgahlot committed Apr 23, 2020
1 parent 38200c7 commit 50833eb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
Binary file removed deploy.tar.gz
Binary file not shown.
26 changes: 18 additions & 8 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ EOF
esac
if is_network_configured ; then
echo "$INFO tinkerbell network interface configured successfully"
else
else
else
echo "$ERR tinkerbell network interface configuration failed"
fi
Expand Down Expand Up @@ -369,14 +367,22 @@ start_components() {

check_prerequisites() {
echo "$INFO verifying prerequisites"
if command_exists git; then
echo "$BLANK- git already installed, found $(git --version)"
else
echo "$BLANK- installing git"
apt-get update >> /dev/null && apt-get install -y --no-install-recommends apt-utils
apt-get install -y git >> /dev/null && echo "$BLANK- $(git --version) installed successfully"
fi

if command_exists ifdown; then
echo "$BLANK- ifupdown already installed"
else
echo "$BLANK- installing ifupdown"
apt-get install -y ifupdown >> /dev/null && echo "$BLANK- ifupdown installed successfully"
fi

# TODO: verify if all required ports are available
# TODO: verify if all required ports are available
}

do_setup() {
Expand All @@ -393,11 +399,15 @@ do_setup() {
setup_docker

# get resources
# TODO: get from https://raw.githubusercontent.com/tinkerbell/tink/master/deploy.tar.gz
echo "$INFO getting setup artifacts"
wget https://github.com/infracloudio/tink/raw/deploy_stack/deploy.tar.gz
tar -xf deploy.tar.gz
rm -f deploy.tar.gz
echo "$INFO getting https://github.com/tinkerbell/tink for latest artifacts"
if [ -d tink ]; then
cd tink
git checkout master && git pull >> /dev/null
else
# git clone --single-branch -b master https://github.com/tinkerbell/tink
git clone --single-branch -b deploy_stack https://github.com/infracloudio/tink.git
cd tink
fi

# Run setup for each distro accordingly
case "$lsb_dist" in
Expand Down

0 comments on commit 50833eb

Please sign in to comment.