File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 87
87
- [x] grpcurl
88
88
- [ ] openapi
89
89
90
- ## Daily log - attempt3
90
+ ## 2025
91
+
92
+ ### Jan
93
+
94
+ - Created a snowflakeid app. tried to run it in my docker
95
+
96
+ spin up mongo
97
+
98
+ ``` bash
99
+ docker run -p 27017:27017 -d --name mongo --hostname mongo mongo:latest --replSet rs0
100
+ ```
101
+
102
+ intialize replicaset
91
103
104
+ ``` javascript
105
+ rs .initiate ({ _id: " rs0" , members: [ { _id: 0 , host: " mongo:27017" } ] })
106
+ ```
107
+
108
+ run snowflakeid app
109
+
110
+ ``` console
111
+ ✗ docker run --link mongo --name snowflakeidgen --rm snowflakeidgen
112
+ Generated and inserted 10000 IDs.
113
+ ```
114
+
115
+ learnt that we can use ` --link ` option to link two containers, without having to create a new custom network between them.
116
+
117
+ next:
118
+
119
+ - set up a docker compose to spin up multiple apps
120
+
121
+ ## Daily log - attempt3
92
122
93
123
## Day 10 - Deploying a kafka cluster locally on minikube
94
124
You can’t perform that action at this time.
0 commit comments