Closed aFlyBird0 closed 2 years ago
I accept this assignment and assign it to me @aFlyBird0
Enjoy coding! 👏 @QinZhanlong
@aFlyBird0 Sorry, wrong operation, reassign the next task,I think:
homeDir=${cd ~ && pwd -P} echo -e "\nsudo mkdir -p $homeDir/data/jenkins-volume/\nsudo chown -R 1000:1000 $homeDir/data/jenkins-volume/"
minikube ssh
docker exec -it
因为dtm与k8s 不在一个主机上,不能一键创建完成
Thank you for your contribution! It's true that it's hard to do it in one click without being on the same host. 👏
So doing the command splicing on the console and then letting the user copy it with one click is considered the best way to go.
One thing I should note is that I got an error when copying the first command line.
I guess the first line should be
homeDir=`cd ~ && pwd -P`
Also, I am very sorry that Daniel Hu mentioned creative PR #1021 this morning. we don't need to create this folder anymore.
@QinZhanlong thanks for your contribution! Please join CNCF's Slack, and join our channel in CNCF Slack! Here are a few useful things for you to continue your open-source journey:
What should be changed?
Now we already have a plugin named
jenkins
to install Jenkins in an existing K8s cluster.Doc is here: https://docs.devstream.io/en/latest/plugins/jenkins/ .
The following is part of the plugin documentation:
As we can see, the shell script here is not perfect, because the user needs to manually copy the result of the first step
cd ~ && echo pwd
(dtm home directory), and then manually paste and splice the subsequent commands.Why don't we just wrap the result of
cd ~ && echo pwd
into a shell variable and let the user copy and run it with one click?Here's the hard part:
cd ~ && echo pwd
andmkdir....
commands do not run on the same machine, one is the local machine and the other is the docker container.You have to runcd ~ && echo pwd
on the local machine and then pass the result into the docker container, notcd
directly inside the docker container.Anything else
The source code of the doc is here:
English: https://github.com/devstream-io/devstream/blob/main/docs/plugins/jenkins.md Chinese: https://github.com/devstream-io/devstream/blob/main/docs/plugins/jenkins.zh.md
Please read the documents below.