Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IMAGE?=localstack/localstack-docker-desktop
TAG?=0.4.1
TAG?=0.4.2

BUILDER=buildx-multi-arch

Expand Down
13 changes: 12 additions & 1 deletion ui/src/components/Header/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import { UpdateDialog } from '../Views';

const ITEM_HEIGHT = 80;

const IMAGE_PREFIXES = [
'localstack/',
'lambci/lambda:',
'mlupin/docker-lambda:',
'public.ecr.aws/lambda',
];


export const LongMenu = () => {
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const [openModal, setOpenModal] = useState<boolean>(false);
Expand All @@ -34,7 +42,10 @@ export const LongMenu = () => {
const fetchImages = async () => {
const images = (await ddClient.docker.listImages()) as DockerImage[];

const localstackImages = images.filter(image => image.RepoTags?.at(0)?.startsWith('localstack/'));
const localstackImages = images.filter(image =>
IMAGE_PREFIXES.some(prefix => image.RepoTags?.at(0)?.startsWith(prefix)) &&
!image.RepoTags?.at(0)?.endsWith(':<none>'));

const imagesWithoutOrgName = localstackImages.map(image => removeRepoFromImage(image.RepoTags?.at(0)));
setImages(imagesWithoutOrgName);
};
Expand Down