This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
AppsPy
Watch
1
Star
1
Fork
0
Code
Issues
2
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Creo makefile para imagen y contenedor
politica
Celestino Rey
1 year ago
parent
840bd8f002
commit
0a66c47717
5 changed files
with
20 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
LyricsPy/K8S/Makefile
+1
-1
LyricsPy/K8S/lyrics-deployment.yaml
+8
-0
LyricsPy/servicios/Makefile
+0
-3
LyricsPy/servicios/creaImagen.sh
+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
-
0.0
.0
.0
:
5000
-
lyrics:create_app()
image
:
creylopez/lyrics:
6.3
image
:
creylopez/lyrics:
$IMG_VERSION
name
:
lyrics
ports:
-
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
Write
Preview
Loading…
Cancel
Save