forked from eiffel-community/eiffel-easy2use
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-default.bash
91 lines (76 loc) · 3.15 KB
/
config-default.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# Copyright 2019 Ericsson AB.
# For a full list of individual contributors, please see the commit history.
#
# 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.
#
# This is the main config file for Easy2Use
# You can copy this file to config-user.bash and modify it without having it
# overwritten by a git merge/pull command, since it is excluded in .gitignore
# The contents of config-user.bash will override the settings in this file.
# Default target type in which Easy2Use will be deployed
# Values: Docker or Kubernetes
#TARGET_TYPE="Docker"
TARGET_TYPE="Kubernetes"
# ----------- Docker specific global configurations
# ------------------------------------------------------------------------------
# Docker specific config
if [ ! -z ${HOST} ]
then
TARGET_HOST=${HOST}
else
if [ $(uname -s) == Linux ]
then
TARGET_HOST=$(hostname -I | tr " " "\n"| head -1)
else
if [ $is_docker_for_windows ]
then
TARGET_HOST=localhost
else
if [ $is_docker_toolbox ]
then
TARGET_HOST=$(docker-machine ip ${DOCKER_MACHINE_NAME} 2>/dev/null)
fi
fi
fi
export HOST=${TARGET_HOST}
fi
# ----------- Docker specific bundle override configurations
# Configurations defined here will override the parameters defined in the bundle
# specific Docker config file
# ------------------------------------------------------------------------------
# DOCKER_NETWORK_OVERRIDE will override docker network settings in bundle
# config-docker.bash file. Which means that you can start multiple bundles in
# the same docker network. Leave commented out if not used.
# DOCKER_NETWORK_OVERRIDE="mynetwork"
# ----------- Kubernetes specific global configurations
# ------------------------------------------------------------------------------
# K8S config file path. Needed by external tools and must therefore be exported
if [ -z ${KUBECONFIG} ]
then
KUBECONFIG=$HOME/.kube/config
fi
# Domain name for the K8S NGINX Ingress
# If using local K8S cluster set via localhost_k8s_config.sh set
# K8S_DOMAINNAME="mylocalkube"
# If using remote K8S cluster set cluster domain name
# ex K8S_DOMAINNAME="integral.seli.gic.ericsson.se"
K8S_DOMAINNAME="mylocalkube"
# ----------- Kubernetes specific bundle override configurations
# Configurations defined here will override the parameters defined in the bundle
# specific Kubernetes config file
# ------------------------------------------------------------------------------
# K8S_NAMESPACE_OVERRIDE will override K8S namespace settings in bundle
# config-k8s file. Which means that you can start multiple bundles in then
# same K8S namespace. Leave commented out if not used.
# K8S_NAMESPACE_OVERRIDE="mynamespace"