Skip to content
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

add custom packages for Full VM && Micro VM #677

Merged
merged 21 commits into from
Jul 27, 2023

Conversation

AlaaElattar
Copy link
Contributor

No description provided.

@AlaaElattar
Copy link
Contributor Author

AlaaElattar commented Jun 21, 2023

Full VM
Screenshot from 2023-06-25 13-56-07
Screenshot from 2023-06-25 13-56-13
#557

@AlaaElattar
Copy link
Contributor Author

Screenshot from 2023-06-25 13-13-09
Screenshot from 2023-06-25 13-13-13

Screenshot from 2023-06-25 13-13-23
#671
#557

@AlaaElattar AlaaElattar linked an issue Jun 25, 2023 that may be closed by this pull request
@AhmedHanafy725
Copy link
Contributor

please resolve the conflicts

@AhmedHanafy725
Copy link
Contributor

the workflows are failing, can you check?

@AlaaElattar AlaaElattar reopened this Jul 17, 2023
Comment on lines 69 to 70
minimum: { type: Object as Package, default: () => ({ cpu: 1, memory: 1024 * 2, ssd: 15 }) },
standard: { type: Object as Package, default: () => ({ cpu: 2, memory: 1024 * 2, ssd: 100 }) },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
minimum: { type: Object as Package, default: () => ({ cpu: 1, memory: 1024 * 2, ssd: 15 }) },
standard: { type: Object as Package, default: () => ({ cpu: 2, memory: 1024 * 2, ssd: 100 }) },
minimum: { type: Object as Package, default: () => ({ cpu: 1, memory: 1024 * 2, disk: 15 }) },
standard: { type: Object as Package, default: () => ({ cpu: 2, memory: 1024 * 2, disk: 100 }) },

Why did we update disk to ssd here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was thabet's request. @xmonader

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be internally defined as disk, but to the user it should be shown as SSD Storage or SSD Disk

recommended: {
type: Object as Package,
default: () => ({ cpu: 4, memory: 1024 * 4, disk: 250 }),
default: () => ({ cpu: 4, memory: 1024 * 4, ssd: 250 }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: () => ({ cpu: 4, memory: 1024 * 4, ssd: 250 }),
default: () => ({ cpu: 4, memory: 1024 * 4, disk: 250 }),

Same here

Copy link
Contributor

@0oM4R 0oM4R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the filters do not update with the package values

Screencast.from.20.2023.EEST.01.17.15.webm

packages/playground/src/weblets/micro_vm.vue Show resolved Hide resolved
packages/playground/src/weblets/full_vm.vue Show resolved Hide resolved
@AlaaElattar AlaaElattar requested a review from 0oM4R July 24, 2023 14:45
:cpu="cpu"
:memory="memory"
:cpu="solution?.cpu"
:memory="solution?.memory"
:disk="disks.reduce((total, disk) => total + disk.size, rootFsSize)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the disk here to be consistence with the solution disk :
after logging the filters i see the value is only 2 <the init value of rootFsSize
image
Screenshot from 2023-07-24 18-08-58

@AlaaElattar AlaaElattar requested a review from 0oM4R July 24, 2023 15:53
@AlaaElattar AlaaElattar requested a review from 0oM4R July 26, 2023 08:22
packages/playground/src/weblets/micro_vm.vue Outdated Show resolved Hide resolved
@AhmedHanafy725 AhmedHanafy725 merged commit 73edbcd into development Jul 27, 2023
@AhmedHanafy725 AhmedHanafy725 deleted the development_add_custom_packages branch July 27, 2023 06:30
AlaaElattar added a commit that referenced this pull request Jul 31, 2023
* add custom packages for fullvm

* remove select_resources component

* add micro vm packages

* update disk in component to ssd storage

* check workflow

* fix lint workflow

* fix linting

* fix disk prop

* fix filters update

* fix disk issue in micro vm

* remove unnecessary value

* update disks in machine model

* return line removed by mistake

* add solution disk to rootfs

* remove rootfs

* remove rootfs component

---------

Co-authored-by: kassem <omarksm09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove the mention of rootFS disk size from the microvm page add custom packages for microvm and fullvm
5 participants