Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

⚡️(tilt) clean automatically old images

lebaudantoine054e7ba945a3
diff --git a/bin/Tiltfile b/bin/Tiltfile
index 6d759e8f..18f8e769 100644
--- a/bin/Tiltfile
+++ b/bin/Tiltfile
@@ -1,6 +1,10 @@
load('ext://uibutton', 'cmd_button', 'bool_input', 'location')
load('ext://namespace', 'namespace_create', 'namespace_inject')
namespace_create('meet')
+
+def clean_old_images(image_name):
+ local('docker images -q %s | tail -n +2 | xargs -r docker rmi' % image_name)
+
docker_build(
'localhost:5001/meet-backend:latest',
context='..',
@@ -15,6 +19,7 @@ docker_build(
)
]
)
+clean_old_images('localhost:5001/meet-backend')
docker_build(
'localhost:5001/meet-frontend:latest',
@@ -26,6 +31,7 @@ docker_build(
sync('../src/frontend', '/home/frontend'),
]
)
+clean_old_images('localhost:5001/meet-frontend')
docker_build(
'localhost:5001/meet-summary:latest',
@@ -37,6 +43,7 @@ docker_build(
sync('../src/summary', '/home/summary'),
]
)
+clean_old_images('localhost:5001/meet-summary')
k8s_yaml(local('cd ../src/helm && helmfile -n meet -e ${DEV_ENV:-dev} template .'))