[feature] git clone repo upon initialization
Some checks failed
DevStar DevContainer Operator CI Pipeline - main branch / build-and-push-devstar-devcontainer-operator (push) Failing after 1m8s

This commit is contained in:
Mingchen Dai
2024-10-14 05:49:23 +00:00
parent 50e6da3137
commit b81c895162
5 changed files with 26 additions and 10 deletions

View File

@@ -74,6 +74,8 @@ spec:
containerPort:
minimum: 1
type: integer
gitRepositoryURL:
type: string
image:
type: string
sshPublicKeyList:
@@ -84,6 +86,7 @@ spec:
type: array
required:
- command
- gitRepositoryURL
- image
- sshPublicKeyList
type: object

View File

@@ -8,11 +8,12 @@ metadata:
app.kubernetes.io/managed-by: kustomize
spec:
statefulset:
image: mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04
image: devstar.cn/public/base-ssh-devcontainer:ubuntu-20.04-20241014
gitRepositoryURL: https://gitee.com/daimingchen_gitee/mock-repo
command:
- /bin/bash
- -c
- apt-get update && apt-get install -y openssh-server && service ssh start && apt-get clean && tail -f /dev/null
- tail -f /dev/null
containerPort: 22
sshPublicKeyList:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC7TXcmW9GNAUou+s1PgBcJlZkw0xZ1ZxLktfsVKvsllYhpjYL7CTgUkl+t5GCvUdBvjQkoOGjenHj7VO3fkF43cFWsHPgBqIFMNDCXHfafbw7OCaKSyPb1Bn+y4mypoYhSy6YirGKSnC/Vw32VK9rtGpBuQse6KvJCMq34wOmdt7Em1vWYWxZaAkDNYUjrmY6/7bjSgUYWNlHx/kM8YQ4gluuackotAHaDo1owCK9dc9FZX2XUZcCJZVVRxCr0LRiyQqfO4s/YIUAetDmE0PP/FKc6lotRZGoNS9t1XSrMRVApF8V2+IgWNDMIzqtap/waMSNhSAOZtiyzx/VjLk92Bm8LPYpv3M1gsoQBZlp1lKstxDjhApq/H5pHOFVNGWPGW4rW5XB8F+Yrwg1PUvV/rBolG73BUAQF+V9UpV4SGKRZtzcOyTPwVZYJx9M5zF6NKAi5Dw8HXqDEvm/r6xc2Ak47NCfikdE3Szd4FZHUJrMY24bv1W4eiON7hHul8e8= TempSessionSSHPublicKey