Sign inSign up

mohdtabish999/product-ui

By mohdtabish999

•Updated almost 6 years ago

Image
0

10K+

mohdtabish999/product-ui repository overview

⁠Execute image

docker build -t mohdtabish999/product-ui:1.0 . 
docker run -p 80:8080 mohdtabish999/product-ui 
docker exec -it <containerid> sh 
go to browser localhost

⁠Docker push-->This works for me:

docker logout
docker login -u "mohdtabish999" -p "xyz321" docker.io && docker push mohdtabish999/product-ui:1.0  

Try connecting to mobile network over wifi. 
OR
switching back from wifi to dongle n/w. 

Enable/disable ethernet n/w.
It may be related to hyper-v swithch (While pushing image it was in "identifying..." mode later unidentified network)
try opening new terminal and give command

----------Updated --------
Above steps didnt work on office laptop. able to push from personal laptop

⁠Chnage location/ proxy in /etc/nginx/conf.d/default.conf file

sed -i 's/172.20.162.1:8081/product-ms2-multiclouddemo.apps.openshift44.hcldnacloudad.com/g' default.conf

OR

cat > nginx.conf.change << EOF
 server {
    listen       8080;

	location /productapi1/ {
        proxy_pass http://product-ms1-multiclouddemo.apps.openshift44.hcldnacloudad.com;
    }

    location /productapi2/ {
        proxy_pass http://product-ms2-multiclouddemo.apps.openshift44.hcldnacloudad.com;
    }

    location / {
        try_files $uri $uri/ /index.html =404;
        root /usr/share/nginx/html;
        index index.html index.htm;
    }

} 
EOF

⁠Reload nginx ->Go to inside container

nginx -s reload

Tag summary

Content type

Image

Digest

Size

52.2 MB

Last updated

almost 6 years ago

docker pull mohdtabish999/product-ui:k8s_v1