-
Notifications
You must be signed in to change notification settings - Fork 114
Add the devfile to work with c/c++ stack #73
Conversation
@tolusha am I correct that this PR is meant to be merged after GA ? |
@ibuziuk yes, you are right. It is for 7.1.0 |
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 can't seem to get this workspace started on latest nightlies.
On OpenShift, the cpp-plugin
container enters a crash loop, terminated with exit code 1.
Also worth noting that this devfile is incompatible with 7.0.0 I believe, since it depends on eclipse-che/che#14174 cc: @ibuziuk |
Logs from the failing container
|
@amisevsk |
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.
Tested again on current nightlies:
The workspace starts up no problem and I can execute build.
However, I get an error after opening the .cpp
file:
Error starting C/C++ language server. Please make sure 'clangd' is installed on your system. You can refer to the clangd page for instructions.
Additionally, I'm against merging this PR using a community image (registry.centos.org/centos/devtoolset-7-toolchain-centos7
) as it has most of the problems the arbitrary user id patch was made to resolve. The steps to adding a patched image are
- Add a line like
che-cpp-centos registry.centos.org/centos/devtoolset-7-toolchain-centos7
tobase_images
- Test that builds okay
./arbitrary-users-patch/build_images.sh
- Create quay.io repo for the new image https://quay.io/organization/eclipse/
- Update devfile to use this new image.
Remaining issue:
|
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.
Per @amisevsk 's comment #73 (review) I've created this PR to add the cpp stack:
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.
Per @amisevsk 's comment #73 (review) I've created this PR to add the cpp stack:
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
@nickboldt Is it supposed to be used in c++ stack instead of |
Yes What are the benefits?
|
devfiles/cpp/devfile.yaml
Outdated
- | ||
type: dockerimage | ||
alias: cpp-dev | ||
image: quay.io/eclipse/che-cpp7-centos:nightly |
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.
switch to use che-cpp-rhel7
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 this image available publicly?
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.
It will be available once I merge the PR
It is available
This new image is meant to resolve #73 (comment) (it includes clang). RHEL was chosen because it's @nickboldt's PR ;) I've tested the devfile in this PR, updating image to |
I've fixed remarks and tested. |
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.
LGTM, thanks @tolusha
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.
+1
squashed and merged. |
What does this PR do?
It adds the devfile to work with c/c++ stack
What issues does this PR fix or reference?
eclipse-che/che#13698