-
Notifications
You must be signed in to change notification settings - Fork 12
COCOS-346 - Explore cloud init for Cloud setup #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COCOS-346 - Explore cloud init for Cloud setup #357
Conversation
e3365c9
to
7873580
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #357 +/- ##
=======================================
Coverage 61.13% 61.13%
=======================================
Files 54 54
Lines 4371 4371
=======================================
Hits 2672 2672
Misses 1419 1419
Partials 280 280 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
7873580
to
24ebef1
Compare
hal/cloud/meta-data
Outdated
@@ -0,0 +1,2 @@ | |||
instance-id: iid-cocos-vm | |||
local-hostname: cocos-vm No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local-hostname: cocos-vm | |
local-hostname: cocos-vm | |
hal/cloud/qemu.sh
Outdated
-device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=198 \ | ||
-object sev-snp-guest,id=sev0,cbitpos=51,reduced-phys-bits=1 \ | ||
-drive if=pflash,format=raw,unit=0,file=$OVMF_CODE,readonly=on \ | ||
-drive if=pflash,format=raw,unit=1,file=$OVMF_VARS No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-drive if=pflash,format=raw,unit=1,file=$OVMF_VARS | |
-drive if=pflash,format=raw,unit=1,file=$OVMF_VARS | |
hal/cloud/user-data
Outdated
- systemctl enable cocos-agent.service | ||
- systemctl start cocos-agent.service | ||
|
||
final_message: "Cocos agent setup complete and service started successfully." No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final_message: "Cocos agent setup complete and service started successfully." | |
final_message: "Cocos agent setup complete and service started successfully." | |
hal/cloud/user-data
Outdated
- git clone https://github.com/ultravioletrs/cocos.git /home/cocos_user/cocos | ||
|
||
# Download and Install the agent binary | ||
- wget -q https://github.com/ultravioletrs/cocos/releases/download/v0.3.1/cocos-agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use some way to set this variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the version
hal/cloud/user-data
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also include docker installation, also set mtls cert files and env files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
dd60c71
to
5091671
Compare
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
5091671
to
dff9f1c
Compare
…to cocos-346-explore-cloud-init # Conflicts: # hal/cloud/qemu.sh
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
251448a
to
b68819c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a basic README here with an explanation on how to use these scripts?
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
Signed-off-by: Jilks Smith <smithjilks@gmail.com>
8af5b07
to
b348602
Compare
buildroot/output/images/bzImage | ||
buildroot/output/images/rootfs.cpio.gz | ||
cocos/build/cocos-agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a step to build these binaries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. There is.
There is a make run.
make BR2_EXTERNAL=../cocos/hal/linux cocos_defconfig | ||
make | ||
- name: Build cocos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the run.
What type of PR is this?
This is a feature because it adds cloud init config for EOS for cocos.
What does this do?
It sdds cloud init config for EOS for cocos.
Which issue(s) does this PR fix/relate to?
Resolves #346
Have you included tests for your changes?
No
Did you document any new/modified feature?
No.
Notes