|
|
@ -1,6 +1,7 @@ |
|
|
# Versión para openshift |
|
|
# Versión para openshift |
|
|
|
|
|
|
|
|
## Instalación |
|
|
## Instalación |
|
|
|
|
|
### app reymota |
|
|
|
|
|
|
|
|
Crear un proyecto y luego añadir una app desde Agregar, importar desde git. |
|
|
Crear un proyecto y luego añadir una app desde Agregar, importar desde git. |
|
|
|
|
|
|
|
|
@ -8,6 +9,32 @@ Crear un proyecto y luego añadir una app desde Agregar, importar desde git. |
|
|
|
|
|
|
|
|
Tal y como está la estructura de directorios, deberia detectar automáticamente una compilación Python |
|
|
Tal y como está la estructura de directorios, deberia detectar automáticamente una compilación Python |
|
|
|
|
|
|
|
|
|
|
|
## asignación de los volúmenes |
|
|
|
|
|
### Si la pvc no está creada |
|
|
|
|
|
|
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --claim-size=300M --name=reymota-lyrics-migrations --claim-name='reymota-lyrics-migrations' --mount-path='/app/lyrics/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --claim-size=300M --name=reymota-media --claim-name='reymota-media' --mount-path='/app/mediafiles' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --claim-size=300M --name=reymota-repostajes-migrations --claim-name='reymota-repostajes-migrations' --mount-path='/app/repostajes/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --claim-size=300M --name=reymota-reymotausers-migrations --claim-name='reymota-reymotausers-migrations' --mount-path='/app/reymotausers/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --claim-size=50G --name=static-volume --claim-name='static-volume' --mount-path='/app/staticfiles' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Si la pvc ya está creada |
|
|
|
|
|
|
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --name=reymota-lyrics-migrations --claim-name='reymota-lyrics-migrations' --mount-path='/app/lyrics/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --name=reymota-media --claim-name='reymota-media' --mount-path='/app/mediafiles' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --name=reymota-repostajes-migrations --claim-name='reymota-repostajes-migrations' --mount-path='/app/repostajes/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --name=reymota-reymotausers-migrations --claim-name='reymota-reymotausers-migrations' --mount-path='/app/reymotausers/migrations' |
|
|
|
|
|
oc set volume deployment.apps/reymota --add -t pvc --name=static-volume --claim-name='static-volume' --mount-path='/app/staticfiles' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Exponer el servicio |
|
|
|
|
|
oc expose service/reymota |
|
|
|
|
|
|
|
|
|
|
|
### postgresql |
|
|
|
|
|
Se hace desde el yaml |
|
|
|
|
|
|
|
|
|
|
|
oc create -f postgresql-deployment.yaml |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|