File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11IMAGE? =localstack/localstack-docker-desktop
2- TAG? =0.4.1
2+ TAG? =0.4.2
33
44BUILDER =buildx-multi-arch
55
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ import { UpdateDialog } from '../Views';
88
99const ITEM_HEIGHT = 80 ;
1010
11+ const IMAGE_PREFIXES = [
12+ 'localstack/' ,
13+ 'lambci/lambda:' ,
14+ 'mlupin/docker-lambda:' ,
15+ 'public.ecr.aws/lambda' ,
16+ ] ;
17+
18+
1119export const LongMenu = ( ) => {
1220 const [ anchorEl , setAnchorEl ] = useState < null | HTMLElement > ( null ) ;
1321 const [ openModal , setOpenModal ] = useState < boolean > ( false ) ;
@@ -34,7 +42,10 @@ export const LongMenu = () => {
3442 const fetchImages = async ( ) => {
3543 const images = ( await ddClient . docker . listImages ( ) ) as DockerImage [ ] ;
3644
37- const localstackImages = images . filter ( image => image . RepoTags ?. at ( 0 ) ?. startsWith ( 'localstack/' ) ) ;
45+ const localstackImages = images . filter ( image =>
46+ IMAGE_PREFIXES . some ( prefix => image . RepoTags ?. at ( 0 ) ?. startsWith ( prefix ) ) &&
47+ ! image . RepoTags ?. at ( 0 ) ?. endsWith ( ':<none>' ) ) ;
48+
3849 const imagesWithoutOrgName = localstackImages . map ( image => removeRepoFromImage ( image . RepoTags ?. at ( 0 ) ) ) ;
3950 setImages ( imagesWithoutOrgName ) ;
4051 } ;
You can’t perform that action at this time.
0 commit comments