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:
|
|
|
|
docker image build -t "reverse-proxy-frontend:1.0.0" .
|
|
|
|
|
|
|
|
Run image:
|
|
|
|
docker run -p 5055:80 -it reverse-proxy-frontend:1.0.0
|
|
|
|
|
2020-05-27 02:07:29 +03:00
|
|
|
Push image to registry:
|
|
|
|
--tag image
|
|
|
|
docker tag reverse-proxy-frontend:1.0.0 cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0
|
|
|
|
|
|
|
|
--login to registry
|
|
|
|
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
|
|
|
|
|
|
|
|
--push image
|
|
|
|
docker push cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0
|
|
|
|
|
|
|
|
Pull image from registry
|
|
|
|
--login to registry with readonly rights
|
|
|
|
docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000
|
|
|
|
|
|
|
|
--pull image
|
|
|
|
docker pull cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0
|
|
|
|
|
|
|
|
Run container in prod env
|
|
|
|
docker run --restart=always -p 5005:80 -d cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0
|
|
|
|
|
|
|
|
Rename container
|
|
|
|
docker rename <containet_id> reverse-proxy-frontend
|
2020-06-05 01:45:43 +03:00
|
|
|
##############################################################################################
|