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 1
1
IMAGE? =localstack/localstack-docker-desktop
2
- TAG? =0.4.1
2
+ TAG? =0.4.2
3
3
4
4
BUILDER =buildx-multi-arch
5
5
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ import { UpdateDialog } from '../Views';
8
8
9
9
const ITEM_HEIGHT = 80 ;
10
10
11
+ const IMAGE_PREFIXES = [
12
+ 'localstack/' ,
13
+ 'lambci/lambda:' ,
14
+ 'mlupin/docker-lambda:' ,
15
+ 'public.ecr.aws/lambda' ,
16
+ ] ;
17
+
18
+
11
19
export const LongMenu = ( ) => {
12
20
const [ anchorEl , setAnchorEl ] = useState < null | HTMLElement > ( null ) ;
13
21
const [ openModal , setOpenModal ] = useState < boolean > ( false ) ;
@@ -34,7 +42,10 @@ export const LongMenu = () => {
34
42
const fetchImages = async ( ) => {
35
43
const images = ( await ddClient . docker . listImages ( ) ) as DockerImage [ ] ;
36
44
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
+
38
49
const imagesWithoutOrgName = localstackImages . map ( image => removeRepoFromImage ( image . RepoTags ?. at ( 0 ) ) ) ;
39
50
setImages ( imagesWithoutOrgName ) ;
40
51
} ;
You can’t perform that action at this time.
0 commit comments