diff --git a/Dockerfile b/Dockerfile index b992e7717..d64ce79fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,3 +57,5 @@ VOLUME /verdaccio/storage ENTRYPOINT ["uid_entrypoint"] CMD $VERDACCIO_APPDIR/packages/verdaccio/bin/verdaccio --config /verdaccio/conf/config.yaml --listen $VERDACCIO_PROTOCOL://0.0.0.0:$VERDACCIO_PORT + +HEALTHCHECK --interval=5s --timeout=1s CMD /verdaccio/abappm/healthcheck.sh diff --git a/abappm/healthcheck.sh b/abappm/healthcheck.sh new file mode 100644 index 000000000..5c2518056 --- /dev/null +++ b/abappm/healthcheck.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if pgrep -f "/usr/bin/dumb-init" > /dev/null; then + if pgrep -f "apm" > /dev/null; then + exit 0 + else + exit 1 + fi +else + exit 1 +fi diff --git a/packages/ui-components/src/components/Package/styles.ts b/packages/ui-components/src/components/Package/styles.ts index 5191d9c64..db85e8cbb 100644 --- a/packages/ui-components/src/components/Package/styles.ts +++ b/packages/ui-components/src/components/Package/styles.ts @@ -72,7 +72,7 @@ export const GridRightAligned = styled(Grid)({ export const Wrapper = styled(List)<{ theme?: Theme }>(({ theme }) => ({ '&:hover': { backgroundColor: - theme?.palette?.type == 'dark' ? theme?.palette?.secondary.main : theme?.palette?.greyLight2, + theme?.palette.mode === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue, }, }));