-
Notifications
You must be signed in to change notification settings - Fork 0
/
setenv.sh
92 lines (86 loc) · 2.16 KB
/
setenv.sh
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
92
#!/bin/sh
#
# Copyright (c) 2020 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# Author: Kaushik C
#
# Description: script to build a Docker image for Oracle Access Manager
#
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
#
#
#===============================================
# MUST: Customize this to your local env
#===============================================
#
# Directory where all domains/db data etc are
# kept. Directories will be created here
export DC_USERHOME=/scratch/${USER}/docker
# Registry names where requisite standard images
# can be found
export DC_REGISTRY_OAM="localhost"
export DC_REGISTRY_DB="localhost"
# Proxy Environment
export NO_PROXY=
export no_proxy=
export http_proxy=
export https_proxy=
export HTTPS_PROXY=
export HTTP_PROXY=
export ftp_proxy=
export FTP_PROXY=
#===============================================
exportComposeEnv() {
#
export DC_HOSTNAME=`hostname -f`
#
# Used by Docker Compose from the env
# Oracle DB Parameters
#
export DC_ORCL_PORT=1521
export DC_ORCL_OEM_PORT=5500
export DC_ORCL_SID=oamdb
export DC_ORCL_PDB=oampdb
export DC_ORCL_SYSPWD=
export DC_ORCL_HOST=${DC_HOSTNAME}
#
export DC_ORCL_DBDATA=${DC_USERHOME}/dbdata
#
# AdminServer Password
#
export DC_ADMIN_PWD=
#
# RCU Common password for all schemas + Prefix Names
#
export DC_RCU_SCHPWD=
export DC_RCU_OAMPFX=OAM01
#
# Domain directories for the various domain types
#
export DC_DDIR_OAM=${DC_USERHOME}/oamdomain
export DC_OAM_VERSION=12.2.1.4.0
export DC_ADMIN_USER=weblogic
export DC_DB_DOMAIN=xxxx.example.com
}
#===============================================
createDirs() {
mkdir -p ${DC_ORCL_DBDATA} ${DC_DDIR_OAM}
chmod 777 ${DC_ORCL_DBDATA} ${DC_DDIR_OAM}
}
#===============================================
printEnvDetails() {
echo "INFO: Environment variables"
env | grep -e "DC_" | sort
}
#===============================================
#== MAIN starts here
#===============================================
#
echo "INFO: Setting up OAM Docker Environment..."
exportComposeEnv
createDirs
printEnvDetails