XMLWordPrintable

Details

    • QE Task
    • Resolution: Done
    • Major
    • 1.1.0.GA
    • 1.1.0.GA
    • testing
    • None
    • QE-2018-04-09 (Sprint: 164)

    Description

      There is an ability to install CRW in offline mode using CRW images from local docker images.
      There is Jenkins job created to test offline installation: https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/pre-release/view/OKD%203.11/job/pre-release-offline-installation-testing-against-OKD/

      Command to install CRW on OKD using local docker registry
        SSO_IMAGE=registry.access.redhat.com/redhat-sso-7/sso72-openshift:1.2-8
        SSO_LOCAL_IMAGE=localhost:5000/sso-local
       
        POSTGRESQL_IMAGE=registry.access.redhat.com/rhscl/postgresql-96-rhel7:1-25
        POSTGRESQL_LOCAL_IMAGE=localhost:5000/postgresql-local
       
        PVC_JOBS_IMAGE=registry.access.redhat.com/rhel7-minimal:7.6-154
        PVC_JOBS_LOCAL_IMAGE=localhost:5000/pvc-jobs-local
       
        SERVER_IMAGE=quay.io/crw/server-container
        SERVER_TAG=1.1-52
        SERVER_LOCAL_IMAGE=localhost:5000/server-local
       
        OPERATOR_IMAGE=quay.io/crw/operator-container:1.1-20
        OPERATOR_LOCAL_IMAGE=localhost:5000/operator-local
       
        # download tar ball
        wget https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/CRW_CI/view/Pipelines/job/crw-operator-installer-and-ls-deps_stable-branch/41/artifact/codeready-workspaces-deprecated/operator-installer/target/codeready-workspaces-operator-installer.tar.gz
        tar -xvf codeready-workspaces-operator-installer.tar.gz
       
        # Push required images to the local docker registry
        docker run -d -p 5000:5000 --name registry registry:2
        
        docker pull $SSO_IMAGE
        docker tag $SSO_IMAGE $SSO_LOCAL_IMAGE
        docker push $SSO_LOCAL_IMAGE
        sed -i "s@    auth:@    auth:\n      keycloakImage: $SSO_LOCAL_IMAGE@g" ${WORKSPACE}/codeready-workspaces-operator-installer/custom-resource.yaml
       
        docker pull $POSTGRESQL_IMAGE
        docker tag $POSTGRESQL_IMAGE $POSTGRESQL_LOCAL_IMAGE
        docker push $POSTGRESQL_LOCAL_IMAGE  
        sed -i "s@    database:@    database:\n      postgresImage: $POSTGRESQL_LOCAL_IMAGE@g" ${WORKSPACE}/codeready-workspaces-operator-installer/custom-resource.yaml
        
        docker pull $PVC_JOBS_IMAGE
        docker tag $PVC_JOBS_IMAGE $PVC_JOBS_LOCAL_IMAGE
        docker push $PVC_JOBS_LOCAL_IMAGE
        sed -i "s@    storage:@    storage:\n      pvcJobsImage: $PVC_JOBS_LOCAL_IMAGE@g" ${WORKSPACE}/codeready-workspaces-operator-installer/custom-resource.yaml  
        
        docker pull $SERVER_IMAGE:$SERVER_TAG
        docker tag $SERVER_IMAGE:$SERVER_TAG $SERVER_LOCAL_IMAGE:$SERVER_TAG
        docker push $SERVER_LOCAL_IMAGE:$SERVER_TAG
        
        docker pull $OPERATOR_IMAGE
        docker tag $OPERATOR_IMAGE $OPERATOR_LOCAL_IMAGE
        docker push $OPERATOR_LOCAL_IMAGE
       
        # install CRW
        ${WORKSPACE}/codeready-workspaces-operator-installer/deploy.sh -d \
        --server-image=$SERVER_LOCAL_IMAGE \
        --version=$SERVER_TAG \
        --operator-image=$OPERATOR_LOCAL_IMAGE
      
      custom-resource.yaml
      ...
        spec:
        ...
          storage:
            pvcJobsImage: localhost:5000/pvc-jobs-local
            pvcStrategy: common
            pvcClaimSize: 1Gi
          database:
            postgresImage: localhost:5000/postgresql-local
            externalDb: false
            chePostgresHostName: ''
            chePostgresPort: ''
            chePostgresUser: ''
            chePostgresPassword: ''
            chePostgresDb: ''
          auth:
            keycloakImage: localhost:5000/sso-local
            openShiftoAuth: ${{ENABLE_OPENSHIFT_OAUTH}}
            externalKeycloak: false
            keycloakAdminUserName: 'admin'
            keycloakAdminPassword: 'admin'
            keycloakURL: ''
            keycloakRealm: ''
            keycloakClientId: ''
      ...
      

      Attachments

        Issue Links

          Activity

            People

              dnochevn Dmytro Nochevnov
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: