-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-install.sh
More file actions
38 lines (28 loc) · 1.02 KB
/
dev-install.sh
File metadata and controls
38 lines (28 loc) · 1.02 KB
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
# Creando el ambiente virual
python3 -m venv venv
# Ejecutar el ambiente virtual
source venv/bin/activate
# Instalando dependencias del proyecto
pip install -r requirements.txt
# Instalando libaio para el cliente oracle
apt-get install -y libaio1
# Creando archivo de variables de entorno
touch .env
# Crenado directorio para certificados SSL
mkdir -p app/certs
# Configuracion del SSL
export COUNTRY=PE
export STATE=LIMA
export CITY=LIMA
export ORGANIZATION=''
export ORGANIZATIONAL_UNIT=''
export COMMON_NAME=''
export EMAIL=''
# Generando certificados SSL
openssl req -new -x509 -keyout ./app/certs/key.pem -out ./app/certs/cert.pem -days 365 -nodes -subj "/C=$COUNTRY/ST=$STATE/L=$CITY/O=$ORGANIZATION/OU=$ORGANIZATIONAL_UNIT/CN=$COMMON_NAME/emailAddress=$EMAIL"
# Creando directorio para la wallet
mkdir -p app/wallet
# ELiminando el cliente oracle ( SI EXISTE )
rm -rf ./oracle_home/instantclient_21_12
# Descomprimiendo el cliente oracle
unzip ./oracle_home/instantclient-basic-linux.x64-21.12.0.0.0dbru.zip -d ./oracle_home