From 949fca5f7188a18ddceabb88890a3d72cbd4a4da Mon Sep 17 00:00:00 2001 From: Myungjin Lee Date: Thu, 1 Dec 2022 18:46:00 -0800 Subject: [PATCH] chore: a skeleton script to configure minikube This is a skeleton script to automate minikube configuration for fiab on different operating systems and linux distributions. Mac Os, Ubuntu and Amazon linux 2 will be supported in this automated script. Note that users can manually configure minikube on different linux distributions. The support for other linux distributions will be planned in the future. --- fiab/setup.sh | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 fiab/setup.sh diff --git a/fiab/setup.sh b/fiab/setup.sh new file mode 100755 index 000000000..c7463a4ac --- /dev/null +++ b/fiab/setup.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +# Copyright 2022 Cisco Systems, Inc. and its affiliates +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + + +function macos_installation { + echo "macos: to be implemented" +} + +function ubuntu_installation { + echo "ubuntu: to be implemented" +} + +function amzn2_installation { + echo "amzn2: to be implemented" +} + +function main { + os=${@:$OPTIND:1} + shift; + + case $os in + "macos") + echo "Starting installation for Mac OS" + macos_installation + ;; + + "ubuntu") + echo "Starting installation for Ubuntu" + ubuntu_installation + ;; + "amzn2") + echo "Starting installation for Amazon Linux 2" + amzn2_installation + ;; + *) + echo "usage: ./setup.sh " + ;; + esac +} + +main "$@"