Browse Source

Creo makefile para imagen y contenedor

politica
Celestino Rey 1 year ago
parent
commit
0a66c47717
5 changed files with 20 additions and 5 deletions
  1. +11
    -0
      LyricsPy/K8S/Makefile
  2. +1
    -1
      LyricsPy/K8S/lyrics-deployment.yaml
  3. +8
    -0
      LyricsPy/servicios/Makefile
  4. +0
    -3
      LyricsPy/servicios/creaImagen.sh
  5. +0
    -1
      LyricsPy/servicios/verImg.sh

+ 11
- 0
LyricsPy/K8S/Makefile View File

@ -0,0 +1,11 @@
export IMG_VERSION = 6.3
imagen:
cd ../servicios; make
install:
envsubst < lyrics-deployment.yaml |kubectl create -f -
clean:
envsubst < lyrics-deployment.yaml |kubectl delete -f -

+ 1
- 1
LyricsPy/K8S/lyrics-deployment.yaml View File

@ -36,7 +36,7 @@ spec:
- --bind - --bind
- 0.0.0.0:5000 - 0.0.0.0:5000
- lyrics:create_app() - lyrics:create_app()
image: creylopez/lyrics:6.3
image: creylopez/lyrics:$IMG_VERSION
name: lyrics name: lyrics
ports: ports:
- containerPort: 5000 - containerPort: 5000


+ 8
- 0
LyricsPy/servicios/Makefile View File

@ -0,0 +1,8 @@
install:
echo "Creando imagen con version ${IMG_VERSION}"
docker build --no-cache -t creylopez/lyrics:${IMG_VERSION} .
docker push creylopez/lyrics:${IMG_VERSION}

+ 0
- 3
LyricsPy/servicios/creaImagen.sh View File

@ -1,3 +0,0 @@
docker build --no-cache -t creylopez/lyrics:6.3 .
docker push creylopez/lyrics:6.3

+ 0
- 1
LyricsPy/servicios/verImg.sh View File

@ -1 +0,0 @@
docker run -it creylopez/lyrics:5.3 bash

Loading…
Cancel
Save