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..
hey docker peeps, i've been running into this error, it seems to happen when I switch projects, at f
hey docker peeps, i've been running into this error, it seems to happen when I switch projects, at first I thought it was specific to code changes but now I'm thinking it has specifically to do with switching projects.
MacOS 11.2.1 / Docker Desktop / Docker version 20.10.2 / docker-compose version 1.27.4
Docker down to stop one project
$ docker/sdk down $ cd path/to/other/sprykerProject
At first I try this
$ docker/sdk reset $ docker/sdk boot deploy.dev.yml # if it's a new project I have to switch to mutagen $ docker/sdk up
Sometimes this only seems to do it, but today...
It runs until it hits the frontend build and then Aborted install...
$ docker/sdk down $ docker/sdk boot deploy.dev.yml $ docker/sdk clean && docker/sdk clean-data $ docker/sdk up --build --assets --data
Sometimes this also seems to work, but today...
It runs until it hits the frontend build and then Aborted install...
$ docker/sdk down $ docker system prune -a && docker system prune --volumes # this has worked in the past for these kinds of things, maybe referencing incorrect container? $ docker/sdk boot deploy.dev.yml $ docker/sdk up
This was my goto, but today i tried it and...
It runs until it hits the frontend build and then Aborted install...
$ docker/sdk down $ docker/sdk boot deploy.dev.yml $ docker/sdk clean-data && docker/sdk up && docker/sdk console q:w:s -v -s
Today this last command worked. Which is sort of answering my own question. The real question is:
Is there a way to switch projects reliably every time
If one wants to switch from SprykerProject1 to SprykerProject2 follow these steps...
Comments
-
In the deploy file there is
namespace
0 -
Change it for each project. This way images and volumes won't be a problem.
0 -
I have around 8-9 different projects. Stop one, change directory, start another.
Simply as is.0 -
alright, well all these projects have the same namespace, the error part of that, checks out π€£ I'll give it a shot. thanks @valerii.trots π
0 -
Don't forget to bootstrap after changing the namespace.
0 -
ok changing the namespaces seems to work most of the time
but not all the time... this looks like a timeout error to me, like it's taking so long to build that it gets cutoff0 -
It was working pretty well for the last couple days of last week though...
0 -
What was the command?
docker/sdk build
?
It isn't related to namespaces IMO.0 -
docker/sdk up
docker/sdk up --build --assets --data
both produce the same result, yeh I don't really know whats going on, and don't know how to debug as there isn't a lot of data yo work with, it's happened in multiple cases in different repos, but all using the docker/sdk repo...
0 -
alright I think I might have figured out what is going on... some artifacts must get left behind... hard to do a prune and then hard reset
docker/sdk trouble && rm -rf vendor && rm -rf src/Generated && docker/sdk sync && docker/sdk up
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 73 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 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
- 69 Spryker Safari Questions
- 50 Random