This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch embedded-devcontainer in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
commit a27d1e5c3a4d48a47bfc9c0afb424ca00450accc Author: Michele Sciabarra <[email protected]> AuthorDate: Thu Oct 16 14:54:21 2025 +0100 fixes devcontainer --- setup/docker/kind.yaml | 47 ---------------------------- setup/nuvolaris/devcontainer/deployment.yaml | 19 +---------- 2 files changed, 1 insertion(+), 65 deletions(-) diff --git a/setup/docker/kind.yaml b/setup/docker/kind.yaml index 1234a98..5f98571 100644 --- a/setup/docker/kind.yaml +++ b/setup/docker/kind.yaml @@ -46,7 +46,6 @@ nodes: - containerPort: 30222 hostPort: 2222 protocol: TCP -- role: worker extraMounts: - hostPath: "$DATADIR/data" containerPath: /data @@ -70,49 +69,3 @@ nodes: containerPath: /kafka - hostPath: "$OPS_HOME/workspace" containerPath: /workspace - extraPortMappings: - - containerPort: 30232 - hostPort: 3232 - protocol: TCP - - containerPort: 30233 - hostPort: 3233 - protocol: TCP - - containerPort: 30896 - hostPort: 7896 - protocol: TCP - - containerPort: 30984 - hostPort: 5984 - protocol: TCP - - containerPort: 30992 - hostPort: 9092 - protocol: TCP - - containerPort: 30644 - hostPort: 9644 - protocol: TCP - - containerPort: 6379 - hostPort: 30379 - protocol: TCP - - containerPort: 28017 - hostPort: 32817 - protocol: TCP - - containerPort: 32717 - hostPort: 27017 - protocol: TCP - - containerPort: 32090 - hostPort: 9000 - protocol: TCP - - containerPort: 32091 - hostPort: 9090 - protocol: TCP - - containerPort: 9080 - hostPort: 9080 - protocol: TCP - - containerPort: 9010 - hostPort: 9010 - protocol: TCP - - containerPort: 32530 - hostPort: 19530 - protocol: TCP - - containerPort: 32531 - hostPort: 9091 - protocol: TCP diff --git a/setup/nuvolaris/devcontainer/deployment.yaml b/setup/nuvolaris/devcontainer/deployment.yaml index 25ebfef..77fdfd5 100644 --- a/setup/nuvolaris/devcontainer/deployment.yaml +++ b/setup/nuvolaris/devcontainer/deployment.yaml @@ -24,13 +24,6 @@ spec: - name: workspace hostPath: path: /workspace - initContainers: - - name: fix-permissions - image: busybox - command: ['sh', '-c', 'chown -R 1000:1000 /workspace'] - volumeMounts: - - name: workspace - mountPath: /workspace containers: - name: devcontainer image: $IMAGE @@ -49,15 +42,6 @@ spec: secretKeyRef: name: ssh-secret key: authorized_keys - - name: OPS_PASSWORD - valueFrom: - secretKeyRef: - name: devel-secret - key: password - - name: OPS_USERNAME - value: devel - - name: OPS_APIHOST - value: http://controller:3233 command: - /bin/bash - -c @@ -72,9 +56,8 @@ spec: echo "$$SSH_KEY" > ~/.ssh/authorized_keys ; ln -sf /workspace ~/workspace ; ops -update ; + sudo chown -R 1000:1000 /workspace ; sudo /usr/sbin/sshd -p 2222 -D - # RENOVED - BUGGY - shhould be before sshd -p 2222 - # echo -e "export OPS_PASSWORD='$$OPS_PASSWORD'\nexport OPS_USERNAME='$$OPS_USERNAME'\nexport OPS_APIHOST='$$OPS_APIHOST'" >>.bashrc ; --- apiVersion: v1 kind: Service
