Browse Source

Usando el registro privado

politica
Celestino Rey 1 year ago
parent
commit
ee7a8fae7a
2 changed files with 8 additions and 5 deletions
  1. +4
    -1
      LibrosPy/K8S/libros-deployment.yaml
  2. +4
    -4
      LibrosPy/servicios/Makefile

+ 4
- 1
LibrosPy/K8S/libros-deployment.yaml View File

@ -37,7 +37,8 @@ spec:
- 0.0.0.0:5000 - 0.0.0.0:5000
- libros:create_app() - libros:create_app()
name: librospy name: librospy
image: creylopez/libros:$IMG_VERSION
#image: creylopez/libros:$IMG_VERSION
image: localhost:30342/libros:$IMG_VERSION
env: env:
- name: SALUDO_DEMO - name: SALUDO_DEMO
value: "Hola, mundo" value: "Hola, mundo"
@ -50,6 +51,8 @@ spec:
name: librospy-instance name: librospy-instance
- mountPath: /libros/migrations - mountPath: /libros/migrations
name: librospy-migrations name: librospy-migrations
imagePullSecrets:
- name: myregistrykey
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: librospy-instance - name: librospy-instance


+ 4
- 4
LibrosPy/servicios/Makefile View File

@ -2,7 +2,7 @@ install:
echo "Creando imagen con version ${IMG_VERSION}" echo "Creando imagen con version ${IMG_VERSION}"
docker build --no-cache -t creylopez/libros:${IMG_VERSION} .
docker push creylopez/libros:${IMG_VERSION}
#docker build --no-cache -t creylopez/libros:${IMG_VERSION} .
#docker push creylopez/libros:${IMG_VERSION}
docker build --no-cache -t localhost:30342/libros:${IMG_VERSION} .
docker push localhost:30342/libros:${IMG_VERSION}

Loading…
Cancel
Save