Calling Developers!
We are reenergizing our code contribution process! Learn More

Is there an easier and especially faster way than `docker/sdk clean && docker/sdk up`?

Options
U0213NKTA82
U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
edited June 2023 in Spryker Dev Environment

Is there an easier and especially faster way than docker/sdk clean && docker/sdk up to completely empty the storage and initiate a new import of the demo data?

Tagged:

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    By "storage" do you mean DB?
    If yes - docker/sdk demo.

  • U0213NKTA82
    U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Thanks, I will give it a try.

  • U0213NKTA82
    U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Looks promising. Saves a lot of time. Thank you!

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 🧑🏻‍🚀 - Cadet
    Options

    docker/sdk demo will resetup and populate the database only.

    It will not remove existing data from storage and search. This can be done by:

    docker/sdk console storage:delete
    docker/sdk console elasticsearch:index:delete
    docker/sdk console search:setup:sources
    

    Then, you can run docker/sdk demo and be sure that there's no legacy data left.

  • U0213NKTA82
    U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Sounds good

  • U0213NKTA82
    U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Looks like console search:setup:sources is also executed during docker/sdk demo.

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 🧑🏻‍🚀 - Cadet
    Options

    Okay. Does it also include the other two?

  • U0213NKTA82
    U0213NKTA82 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    no