Coder Social home page Coder Social logo

Comments (9)

creisle avatar creisle commented on August 21, 2024

@brayden-bcgsc and @mathieulemieux when the tasks above are done can you post the applicable release version of the API container back here

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

In order to test these changes, I did the following on dockerdev server:

  • strop and remove all pori containers
  • clone a new copy of pori, pori_ipr_api and pori_grapgkb_api repos
  • in pori_ipr_api:
    • checkout develop branch (includes changes to demo/ipr_demodb.postgres.dump)
  • in pori_graphkb_api:
    • checkout feature/KBDEV-977-make-shared-default-admin-demo-user-for-graphkb-ipr-57 branch (includes changes to src/repo/schema.js)
  • in pori:
    • checkout feature/make-shared-default-admin-demo-user-for-graphkb-ipr-57 branch (includes changes to demo/kc_realmexport.json)
    • made these changes to docker-compose.dev.yml
    • mkdir -p databases/{postgres,orientdb}/{backup,data} && mkdir keys
    • docker-compose -f docker-compose.dev.yml up -d --build
    • exported 3000, 5000, 8080, 8081 & 8888.

Here are the Keycloak users:
image

Here are the GraphKb users:
image

Errors I got:

  • I can't log into IPR using pori_admin; only iprdemo will work
  • Going from IPR to GraphKB while logged to IPR with iprdemo isn't possible without relogging with pori_admin user

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

Ok, in order to make it work, we need to update the ipr_demodb image too.
It's look like this: before starting the containers with docker-compose,

  • in pori_ipr_api repo, run the following command: "docker build -f Dockerfile.db -t bcgsc/pori-ipr-demodb:pori_admin ." (Ty @brayden-bcgsc !)
  • in pori repo, make an additional change to the docker-compose.dev.yml to make the ipr_db container based on image bcgsc/pori-ipr-demodb:pori_admin instead of bcgsc/pori-ipr-demodb:latest

Everything went well.
The pori_admin user allows to switch from IPR to GraphKB without the need to logout.

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

On pori_graphkb_api, replace feature/KBDEV-977-make-shared-default-admin-demo-user-for-graphkb-ipr-57 from develop by bugfix/KBDEV-977-make-shared-default-admin-demo-user-for-graphkb-ipr-57 from master. Commit the same changes as before and re-tested everything on dockerdev. Ready to PR.

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

For info, here is the previous PR for default db dump made by @RaphaelPletz to pori_ipr_api: bcgsc/pori_ipr_api#160.

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

Here are the different users in ipr, graphkb and keycloak:
image
Should we get rid of colab_demo and iprdemo?

from pori.

creisle avatar creisle commented on August 21, 2024

Here are the different users in ipr, graphkb and keycloak: image Should we get rid of colab_demo and iprdemo?

we should only remove the users that were replaced with the new account (pori_admin) or that are no longer created

  • colab_demo should still be being created, it is used for the colab/jupyter notebooks in the docs
  • please double check that iprdemo still exists in IPR, if it does it can be left as well

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

Looks like we are still using the iprdemo user in IPR so I'll let it there: https://github.com/bcgsc/pori_ipr_api/blob/b5038f806e183f0432a25078ed682b68ad9081f6/demo/clean_db_for_demo.js#L167-L206

from pori.

mathieulemieux avatar mathieulemieux commented on August 21, 2024

Closed by PR #59

from pori.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.