What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
I would like to have a general approach how to update spryker in docker enviroment. And not to dest
Comments
-
Hi Robert,
Let me clarify your setup and what you are trying to achieve.
So, as I understand, you have DB instance inside a container and NOT as a managed service, right?
Are you talking about local development environment or production?0 -
Hi @UPZH5HHEV
i would like to solve both environments.
And yes my setup is totally build with the docker/sdk.Thanks
0 -
???
0 -
I am asking for more time to evaluate this topic. I need to discuss this with my team first. And I will come back to you soon
0 -
Robert, I forgot to ask.
Are you using PostgreSQL or MySQL?0 -
Hi Robert,
Small update from our side.
At the moment, there is no support for updating DB versions AND keeping the data in docker-sdk.But you can try to use the following guidelines to do that manually:
PostgreSQL:1. docker exec spryker_demo_database_1 pg_dumpall -U root > dump.sql 2. docker/sdk down 3. docker volume rm spryker_demo_database-postgres-data 4. Change version into docker/deployment/default/docker-compose.yml for database 5. docker/sdk run 6. docker cp dump.sql spryker_demo_database_1:/var/lib/postgresql/data 7. docker exec -it spryker_demo_database_1 bash 8. psql -U root < /var/lib/postgresql/data/dump.sql
For MySQL:
1. Change version into docker/deployment/default/docker-compose.yml for database 2. Change config volume:- ./${DEPLOYMENT_PATH}/context/mysql/my.cnf:/etc/mysql/mysql.conf.d/my.cnf:ro 3. docker/sdk run
I hope this helps.
And thank you for your questions. We will consider this functionality to be part of our product.Dmytro
0 -
And of course, when you update your local setup and only project code is involved, then only the required images will be rebuilt (e.g. Yves, Zed)
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random