@_xtribe/cli 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "TRIBE multi-agent development system - Zero to productive with one command",
5
5
  "main": "install-tribe.js",
6
6
  "bin": {
@@ -117,6 +117,8 @@ spec:
117
117
  labels:
118
118
  app: gitea
119
119
  spec:
120
+ securityContext:
121
+ fsGroup: 1000
120
122
  initContainers:
121
123
  - name: wait-for-db
122
124
  image: busybox:1.35
@@ -152,12 +154,13 @@ spec:
152
154
  SECRET_KEY = changeme
153
155
  EOF
154
156
 
155
- # Run migrations
156
- gitea migrate
157
-
158
- # Create admin user
159
- gitea admin user create --admin --username gitea_admin --password admin123 --email admin@example.com || true
157
+ # Fix permissions
158
+ chown -R 1000:1000 /data
160
159
  env:
160
+ - name: USER_UID
161
+ value: "1000"
162
+ - name: USER_GID
163
+ value: "1000"
161
164
  - name: GITEA_WORK_DIR
162
165
  value: /data
163
166
  - name: GITEA_CUSTOM
@@ -171,6 +174,10 @@ spec:
171
174
  ports:
172
175
  - containerPort: 3000
173
176
  env:
177
+ - name: USER_UID
178
+ value: "1000"
179
+ - name: USER_GID
180
+ value: "1000"
174
181
  - name: GITEA_WORK_DIR
175
182
  value: /data
176
183
  - name: GITEA_CUSTOM
@@ -184,6 +191,15 @@ spec:
184
191
  port: 3000
185
192
  initialDelaySeconds: 30
186
193
  periodSeconds: 10
194
+ lifecycle:
195
+ postStart:
196
+ exec:
197
+ command:
198
+ - /bin/bash
199
+ - -c
200
+ - |
201
+ sleep 30
202
+ su git -c 'gitea admin user create --admin --username gitea_admin --password admin123 --email admin@example.com' || true
187
203
  volumes:
188
204
  - name: gitea-data
189
205
  emptyDir: {}