containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

Add tools code-server

Open kaelemc opened this issue 6 months ago • 6 comments

Tools command to expose a custom code-server image with the clab vsc ext preinstalled.

cc @FloSch62

kaelemc avatar Aug 24 '25 03:08 kaelemc

I will have to park this one for now.

There is an issue where the webviews cannot work unless a trusted HTTPS cert is provided. (https://github.com/coder/code-server/discussions/6656).. This kind of renders a lot of the extension functionality useless.

kaelemc avatar Sep 03 '25 12:09 kaelemc

Seems we can do with raw HTTP.. just some changes required to make topoviewer work

kaelemc avatar Sep 03 '25 14:09 kaelemc

Codecov Report

:x: Patch coverage is 11.59420% with 427 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 55.50%. Comparing base (b7f9f0c) to head (6e04433).

Files with missing lines Patch % Lines
cmd/tools_code_server.go 9.75% 395 Missing and 3 partials :warning:
mocks/mockruntime/runtime.go 0.00% 9 Missing :warning:
cmd/tools.go 45.45% 4 Missing and 2 partials :warning:
runtime/docker/docker.go 0.00% 6 Missing :warning:
runtime/ignite/ignite.go 0.00% 6 Missing :warning:
runtime/podman/podman.go 0.00% 2 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2777      +/-   ##
==========================================
- Coverage   55.89%   55.50%   -0.39%     
==========================================
  Files         207      208       +1     
  Lines       24362    24837     +475     
==========================================
+ Hits        13617    13787     +170     
- Misses       9524     9803     +279     
- Partials     1221     1247      +26     
Files with missing lines Coverage Δ
cmd/options.go 89.65% <100.00%> (+0.31%) :arrow_up:
cmd/tools_api_start.go 69.75% <100.00%> (+0.56%) :arrow_up:
cmd/tools_api_status.go 86.51% <100.00%> (ø)
runtime/runtime.go 90.90% <ø> (ø)
runtime/podman/podman.go 0.30% <0.00%> (-0.01%) :arrow_down:
cmd/tools.go 81.25% <45.45%> (-7.43%) :arrow_down:
runtime/docker/docker.go 68.15% <0.00%> (-0.48%) :arrow_down:
runtime/ignite/ignite.go 0.29% <0.00%> (-0.01%) :arrow_down:
mocks/mockruntime/runtime.go 8.88% <0.00%> (-0.32%) :arrow_down:
cmd/tools_code_server.go 9.75% <9.75%> (ø)

... and 3 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Sep 18 '25 16:09 codecov[bot]

Will take a look

kaelemc avatar Sep 21 '25 06:09 kaelemc

Minor tweak to open on the homedir by default, and did a rebase.. sorry for the delay on this one.

The dependency repo is here.. I have to handle the gh workflow to build the container on new ext releases:

https://github.com/kaelemc/clab-code-server

kaelemc avatar Oct 05 '25 07:10 kaelemc

scrap that... few problems with this right now.

kaelemc avatar Oct 05 '25 07:10 kaelemc