Comments (11)
As long as it also still works on a Windows machine, I'm fine with that.
Just to be clear: what's exactly the issue with the folder's ownership changing?
from dapr-workshop.
The ownership of the folder changes to 1883
, which is most likely not the user id of the person doing the workshop. So they have a folder in their home directory that they cannot write to anymore - the only way to change that is to sudo chown -R ......
it. It's not an irreversible problem, it's just not that clean :-). And people might be surprised (like I was) or even upset that following the workshop brings up this situation.
from dapr-workshop.
The other day, I incidentally ran the Windows command on a Linux machine, and I almost destroyed my setup.
The Windows command is docker run -d -p 1883:1883 -p 9001:9001 -v $pwd/:/mosquitto/config/ --name dtc-mosquitto eclipse-mosquitto
- as $pwd
is usually an empty string on Linux, it will map the root directory of the machine as /mosquitto/config/
in the container.
The container then changes ownership of /mosquitto/config/
to 1883:1883. On Linux, it will take a while to do this, but it will eventually render the system unusable, as all files are owned by a non-existing user.
@EdwinVW, is there another way to get the current working directory on Windows? On Linux, we can do pwd
or $(pwd)
. There are probably some differences that I'm not aware of, but they roughly do the same...
from dapr-workshop.
I'll look into whether there's another way on Windows.
from dapr-workshop.
We could also add instructions on how to bake the config file into a Docker container image (using COPY) and use that for the workshop.
Would that not fix all issues (also the chmod stuff)??
from dapr-workshop.
That's exactly what my line of thought was...:
Would you be accepting a PR that addresses this, e.g. by copying over the configuration files to a temporary directory and then mounting that one into the Mosquitto container?
So yes, sounds like a brilliant plan to me :-)
from dapr-workshop.
Yes, that was your suggestions but that's not what I mean.
I mean not mounting any folder when starting the container at all, but actually creating our own Mosquitto Docker image (based on the current one). We can than copy the config into the right folder inside the image. We than start the Mosquitto container from our own image. I'm already working on a Docker file for that.
from dapr-workshop.
Apologies for not reading carefully enough. But yeah, copying the config into the container rather than mounting it would also work fine.
from dapr-workshop.
I have a working solution now. I will do a PR in which I update the way Mosquitto is used, and also update the instructions for .NET and Java so they comply with the updated approach.
from dapr-workshop.
Fix is in PR #31.
@mthmulders Could you please review.
from dapr-workshop.
I just executed assignment 6 for .NET and everything worked as expected.
from dapr-workshop.
Related Issues (17)
- A11Y Images with lots of content are not really accessible HOT 8
- Upgrade to Dapr 1.3 HOT 1
- Upgrade code to .NET 6
- Fabulous HOT 1
- Use appropriate screenshots in Java assignment HOT 1
- Add a bonus objective to combine different languages? HOT 2
- Line endings in mosquitto when working with WSL2 HOT 2
- Update to Dapr 1.4 HOT 9
- [Python] Instruction to assign license_key from secret is wrong in assignment - 07 HOT 1
- [Python] Small typo error in the assignment-03 step 06 HOT 1
- Pub sub for Java SDK HOT 5
- Dapr Actor Model HOT 1
- Error in Assignment2 HOT 3
- Java track lacks distributed tracing
- [Java] Suggestion for Assignment #3 HOT 4
- Question on "Service Invocation" among different languages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapr-workshop.