cjng96 / gat Goto Github PK
View Code? Open in Web Editor NEWProvisioning and app deployment like capistrano
License: Other
Provisioning and app deployment like capistrano
License: Other
먼저 gat tool을 잘사용하고 있는 사용자로써 감사의 말씀을 드립니다.
그런데, gat tool을 이용하여 program를 지속적으로 deploy하다 보면, 더이상 사용하지 않는 과거의 docker image가 남아 있어, 하드가 가득차는 문제가 발생합니다. 본 이슈는 시스템에 치명적인 에러를 가져올 수 있습니다.
이러한 문제를 개선하기 위해서, deployment 이후 최근 N개의 image 만 남겨두던지, depoly한 이미지를 제외한 나머지는 삭제하는 기능을 보완해주시면 감사하겠습니다.
현재 임시로 docker rmi $(docker images face-anz -q)
이런 명령을 사용해서 가끔씩 수동으로 정리하고 있습니다.
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
face-anz 15.14.86 5143ec415745 11 minutes ago 3.24GB
face-anz 15.14.85 6f93b26897d6 29 minutes ago 3.24GB
face-anz 15.14.84 a4a85c68ef31 About an hour ago 3.24GB
face-anz 15.14.83 4fec574468cd 2 hours ago 3.24GB
face-anz 15.14.82 375b2baf18b4 2 hours ago 3.24GB
face-anz 15.14.81 74a7766b9e48 2 hours ago 3.24GB
ft 15.13.317 1b738155f0e6 27 hours ago 3.02GB
ft 15.11.220 50415c71b7a6 44 hours ago 2.87GB
face-anz 15.14.78 8d66bbb1069f 13 days ago 3.24GB
face-anz-img 15.14 9313e3cf5a9b 4 weeks ago 2.01GB
face-anz-img 15.13 4a95efb6462d 7 weeks ago 2.01GB
face-anz-img 15.12 3e7bfc7d8e64 7 weeks ago 2.01GB
depolyment 이후 tmp 폴더에 있는 임시파일 삭제기능 필요합니다. tmp가 지속적으로 증가되는 문제가 있습니다.
$ ll /tmp/
total 5.1G
drwxrwxrwt 12 root root 12K Mar 30 03:57 .
drwxr-xr-x 21 root root 4.0K Aug 30 2023 ..
drwxrwxrwt 2 root root 4.0K Aug 30 2023 .ICE-unix
drwxrwxrwt 2 root root 4.0K Aug 30 2023 .Test-unix
drwxrwxrwt 2 root root 4.0K Aug 30 2023 .X11-unix
drwxrwxrwt 2 root root 4.0K Aug 30 2023 .XIM-unix
drwxrwxrwt 2 root root 4.0K Aug 30 2023 .font-unix
-rw-rw-r-- 1 cjng96 cjng96 7.2K Dec 22 09:17 felix-mbp.local-4114-godHelper.py
-rw-rw-r-- 1 cjng96 cjng96 7.2K Mar 10 07:41 gatHelper-jbpia-174086.py
-rw-rw-r-- 1 cjng96 cjng96 7.2K Mar 10 08:59 gatHelper-jbpia-190963.py
-rw-rw-r-- 1 cjng96 cjng96 7.2K Mar 6 05:49 gatHelper-jbpia-305498.py
-rw-rw-r-- 1 cjng96 cjng96 7.2K Mar 6 05:56 gatHelper-jbpia-306446.py
-rw-rw-r-- 1 cjng96 cjng96 7.2K Mar 29 12:38 gatHelper-jbpia-3734305.py
-rw-rw-r-- 1 deploy deploy 7.2K Jan 2 04:45 godHelper.py
-rwxr-xr-x 1 cjng96 cjng96 308 Mar 30 04:06 sermon.cmd
-rw-rw-r-- 1 cjng96 cjng96 1.3K Mar 30 04:06 sermon.log
-rwxr-xr-x 1 cjng96 cjng96 4.1K Mar 28 23:09 sermon.py
drwx------ 3 root root 4.0K Aug 30 2023 snap-private-tmp
drwx------ 3 root root 4.0K Dec 11 03:42 systemd-private-1cad7b96be524604be861d01abae7d91-chrony.service-8ieRxN
drwx------ 3 root root 4.0K Aug 30 2023 systemd-private-1cad7b96be524604be861d01abae7d91-systemd-logind.service-BE3VDL
drwx------ 3 root root 4.0K Mar 14 03:44 systemd-private-1cad7b96be524604be861d01abae7d91-systemd-resolved.service-Psbkni
drwx------ 2 root root 4.0K Oct 5 06:08 tmp.DTuRKQcasz
-rw-rw-r-- 1 cjng96 cjng96 687M Mar 10 07:40 upload-jbpia-174086.tmp
-rw-rw-r-- 1 cjng96 cjng96 685M Mar 6 05:47 upload-jbpia-305498.tmp
-rw-rw-r-- 1 cjng96 cjng96 685M Mar 6 05:55 upload-jbpia-306446.tmp
-rw-rw-r-- 1 cjng96 cjng96 691M Mar 29 12:37 upload-jbpia-3734305.tmp
-rw-rw-r-- 1 alex alex 406M Mar 14 03:33 upload-lotto-197842.tmp
-rw-rw-r-- 1 deploy deploy 406M Mar 14 03:39 upload-lotto-209890.tmp
-rw-rw-r-- 1 deploy deploy 406M Mar 14 04:00 upload-lotto-246582.tmp
-rw-rw-r-- 1 deploy deploy 406M Mar 14 04:09 upload-lotto-263831.tmp
-rw-rw-r-- 1 deploy deploy 406M Mar 14 05:11 upload-lotto-442384.tmp
-rw-rw-r-- 1 deploy deploy 406M Mar 14 05:19 upload-lotto-463057.tmp
-rw-rw-r-- 1 deploy deploy 4.3K Jan 2 04:45 upload.tmp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.