reverse-proxy-frontend/private/Notes.txt

51 lines
1.6 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:
2020-12-26 01:42:33 +02:00
docker image build -t "reverse-proxy-frontend:1.0.4" .
2020-05-27 01:31:31 +03:00
Run image:
2020-12-26 01:42:33 +02:00
docker run -p 5055:80 -it reverse-proxy-frontend:1.0.4
2020-05-27 01:31:31 +03:00
2020-05-27 02:07:29 +03:00
Push image to registry:
--tag image
2020-12-26 01:42:33 +02:00
docker tag reverse-proxy-frontend:1.0.4 cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.4
2020-05-27 02:07:29 +03:00
--login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
--push image
2020-12-26 01:42:33 +02:00
docker push cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.4
2020-05-27 02:07:29 +03:00
Pull image from registry
--login to registry with readonly rights
2020-12-26 02:38:31 +02:00
docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000
2020-05-27 02:07:29 +03:00
--pull image
2020-12-26 01:42:33 +02:00
docker pull cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.4
2020-05-27 02:07:29 +03:00
Run container in prod env
2020-12-26 01:42:33 +02:00
docker run --restart=always -p 5005:80 -d cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.4
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