mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Docker, healthcheck, list hover
This commit is contained in:
parent
919795c804
commit
a985ddc246
3 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
11
abappm/healthcheck.sh
Normal file
11
abappm/healthcheck.sh
Normal file
|
@ -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
|
|
@ -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,
|
||||
},
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue