reverse-proxy-frontend/private/Notes.txt

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-05-13 17:56:51 +03:00
withTranslation()(LegacyComponentClass)
const { t } = this.props;
import { useTranslation } from 'react-i18next';
function MyComponent() {
2020-05-27 01:31:31 +03:00
const { t, i18n } = useTranslation();
##############################################################################################
Docker commands:
*****************
Create image:
--from solution folder:
2021-05-15 03:50:05 +03:00
docker image build -t "reverse-proxy-frontend:1.0.0" .
2020-05-27 01:31:31 +03:00
Run image:
2021-05-15 03:50:05 +03:00
docker run -p 5055:80 -it reverse-proxy-frontend:1.0.0
2020-05-27 01:31:31 +03:00
2020-05-27 02:07:29 +03:00
Push image to registry:
--tag image
2021-05-15 03:50:05 +03:00
docker tag reverse-proxy-frontend:1.0.0 alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:1.0.0
2020-05-27 02:07:29 +03:00
--login to registry
2021-05-15 03:50:05 +03:00
docker login --username=admin --password="***REMOVED***" alpine-nexus:8500
2020-05-27 02:07:29 +03:00
--push image
2021-05-15 03:50:05 +03:00
docker push alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:1.0.0
2020-05-27 02:07:29 +03:00
Pull image from registry
2021-05-15 03:50:05 +03:00
--login to registry
2020-05-27 02:07:29 +03:00
--pull image
2021-05-15 03:50:05 +03:00
docker pull alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:1.0.0
2020-05-27 02:07:29 +03:00
Run container in prod env
2021-05-15 03:50:05 +03:00
docker run -d --name reverse-proxy-frontend --restart=always -p 5005:80 alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:1.0.0
2020-05-27 02:07:29 +03:00
Rename container
2020-12-26 02:34:56 +02:00
docker rename <container_id> reverse-proxy-frontend
2020-06-05 01:45:43 +03:00
##############################################################################################
2020-06-06 02:07:04 +03:00
import { makeStyles, useTheme } from "@material-ui/core/styles";
2020-06-06 02:47:03 +03:00
const theme = useTheme();
2020-06-06 03:36:18 +03:00
https://www.flaticon.com/free-icon/wizard_2534554?term=wizard&page=1&position=64
https://lucasbassetti.com.br/react-simple-chatbot/#/docs/previous-value