Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(kasmvnc): optimize KasmVNC deployment script #329
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
fix(kasmvnc): optimize KasmVNC deployment script #329
Changes from 9 commits
a8cc861
8213a57
6d6e0dd
c59ba95
bb7d438
10a86bd
46bbcb9
30e6bed
4d831b4
9c3904d
4a72b2e
a2d8e72
026a5bc
4fc9f6d
d418c81
c4f88fa
52ba74c
d619e65
eff921e
eb974cb
f3a0f98
ab96d93
ebc57a1
86b48dd
15e3ec2
41baf48
7d7c7e8
f35b535
a0373c0
ccf299b
ef4f704
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Out of curiosity, what packages are we avoiding installing here by not pulling in the rec/suggestions?
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.
I'm not sure, I left that in from the original script.
It's working for me, so as of right now, I don't think anything important is missing.
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.
FYI, doesn't look like anything important.
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 docs for Fedora suggest using
yum
to install, and also to ensure deps via:Is this guaranteed to work the same and not potentially break some functionality?
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.
We should look into finding or building a desktop image to test this with for RHEL, Fedora, Centos, and Oracle.
As with the original script I believe only the
codercom/enterprise-desktop:ubuntu
image was tested and this is the one I am using.I did some further reading, it sounds like on RHEL8, yum is an alias for dnf.
Other places suggest that dnf is preferred almost always to yum for the extra features.
I've also read that we should use
sudo dnf localinstall /tmp/kasmvncserver.rpm
instead.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.
Suggestion: A bit more verbose but easier to understand, should also be easier to extend in the future if need-be.
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.
Same as above, except I also wonder if we actually want to enforce the overwrite from
arm64
toaarch64
when distro isn't one of the three?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.
For x86_64, it probably doesn't need to overwrite.
For aarch64 or arm64, do we need to do anything other than just match?
I would imagine that each distro would report the correct version for itself?
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.
Doesn't look like
arm64
case inaarch64 | arm64)
is ever applicable:So we can essentially use the same logic as above for
x86_64
, default=aarch64, for debian based, use arm64 instead (verified from kasm releases that all others are aarch64).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.
We probably need both
install_rpm
andinstall_dnf
. I just tried theopensuse/leap
image and it has neitherdnf
noryum
, onlyzypper
andrpm
.I'm not sure if this is a script meant for installing the kasmvnc built package or something else, but this at least gives hints for the expectation per distro: https://github.com/kasmtech/KasmVNC/blob/3a8517d7dc461eaccc7ed8e3d3b155e233426fc8/builder/scripts/common.sh#L22-L29
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.
Perhaps in the
install_rpm
function, we have a switch case to select based on what tooling is available?Similar to the download function?
Priority: