IBM Sterling: Configurando as imagens no Registry: Difference between revisions

From Wiki
(Criou a página com " = See Also = * IBM Sterling: Deploy do Sterling B2Bi no OpenShift na IBM Cloud * Artigos sobre IBM Sterling * Tecnologias| Mais Artigos sobre C...")
 
No edit summary
Line 1: Line 1:
=Procedimento=
==Extrair os arquivos==
tar -xvf STER_B2B_INT_CERT_CONT_V6.1_ML.tar
Serão extraídos os seguintes arquivos:
<small>x b2bi-6.1.0.0.tar
x purge-6.1.0.0.tar
x ps-6.1.0.0.tar
x ibm-b2bi-prod-2.0.0.tgz</small>
== Configurando o OpenShift Registry==
oc project openshift-image-registry
Now using project "openshift-image-registry" on server "https://c107-e.us-south.containers.cloud.ibm.com:31619".
$ oc get svc
NAME                      TYPE        CLUSTER-IP    EXTERNAL-IP  PORT(S)    AGE
image-registry            ClusterIP  172.21.191.9  <none>        5000/TCP    4h8m
image-registry-operator  ClusterIP  None          <none>        60000/TCP  4h39m
$ oc create route reencrypt --service=image-registry
route.route.openshift.io/image-registry created
$ oc get route image-registry
NAME            HOST/PORT                                                                                                                                  PATH  SERVICES        PORT      TERMINATION  WILDCARD
image-registry  image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-...us-south.containers.appdomain.cloud          image-registry  5000-tcp  reencrypt    None
$ oc edit route image-registry
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
    openshift.io/host.generated: "true"
    haproxy.router.openshift.io/balance: source
route.route.openshift.io/image-registry edited
oc new-project sterling-b2bi-app
docker login -u $(oc whoami) -p $(oc whoami -t) image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-....us-south.containers.appdomain.cloud
  <small>WARNING! Using --password via the CLI is insecure. Use --password-stdin.
  Login Succeeded</small>
Carregando as imagens
docker load -i b2bi-6.1.0.0.tar
docker load -i ps-6.1.0.0.tar
docker load -i purge-6.1.0.0.tar
Rotulando as imagens
docker tag b2bi:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-....us-south.containers.appdomain.cloud/sterling-b2bi-app/b2bi:6.1.0.0
docker tag ps:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-8c1e167e9d701a9f52a0a22606bde374-0000.us-south.containers.appdomain.cloud/sterling-b2bi-app/ps:6.1.0.0
docker tag purge:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-8c1e167e9d701a9f52a0a22606bde374-0000.us-south.containers.appdomain.cloud/sterling-b2bi-app/purge:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/b2bi:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/ps:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/purge:6.1.0.0





Revision as of 14:10, 23 May 2021

Procedimento

Extrair os arquivos

tar -xvf STER_B2B_INT_CERT_CONT_V6.1_ML.tar

Serão extraídos os seguintes arquivos:

x b2bi-6.1.0.0.tar
x purge-6.1.0.0.tar
x ps-6.1.0.0.tar
x ibm-b2bi-prod-2.0.0.tgz


Configurando o OpenShift Registry

oc project openshift-image-registry Now using project "openshift-image-registry" on server "https://c107-e.us-south.containers.cloud.ibm.com:31619".

$ oc get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE image-registry ClusterIP 172.21.191.9 <none> 5000/TCP 4h8m image-registry-operator ClusterIP None <none> 60000/TCP 4h39m

$ oc create route reencrypt --service=image-registry route.route.openshift.io/image-registry created

$ oc get route image-registry NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD image-registry image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-...us-south.containers.appdomain.cloud image-registry 5000-tcp reencrypt None

$ oc edit route image-registry


apiVersion: route.openshift.io/v1 kind: Route metadata: annotations:

   openshift.io/host.generated: "true"
   haproxy.router.openshift.io/balance: source

route.route.openshift.io/image-registry edited

oc new-project sterling-b2bi-app

docker login -u $(oc whoami) -p $(oc whoami -t) image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-....us-south.containers.appdomain.cloud

 WARNING! Using --password via the CLI is insecure. Use --password-stdin.
 Login Succeeded

Carregando as imagens

docker load -i b2bi-6.1.0.0.tar
docker load -i ps-6.1.0.0.tar
docker load -i purge-6.1.0.0.tar

Rotulando as imagens

docker tag b2bi:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-....us-south.containers.appdomain.cloud/sterling-b2bi-app/b2bi:6.1.0.0
docker tag ps:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-8c1e167e9d701a9f52a0a22606bde374-0000.us-south.containers.appdomain.cloud/sterling-b2bi-app/ps:6.1.0.0
docker tag purge:6.1.0.0 image-registry-openshift-image-registry.ebasso-roks-demo-sb2bi-8c1e167e9d701a9f52a0a22606bde374-0000.us-south.containers.appdomain.cloud/sterling-b2bi-app/purge:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/b2bi:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/ps:6.1.0.0
docker push image-registry-openshift-image-registry.ebasso-roks-demo-....us-south.containers.appdomain.cloud/sterling-b2bi-app/purge:6.1.0.0



See Also