-
Task
-
Resolution: Done
-
Major
-
3.1.0.GA
-
None
-
False
-
None
-
False
-
To be documented in another, linked Jira: see https://issues.redhat.com/browse/CRW-3410.
-
Not Required
To get closer to prod sec and legal requirements, we should move from get-sources.sh -> asset*.gz file for the golang lang server dependencies, and instead use cachito w/ container.yaml configuration to fetch sources, then build the sources inside a Docker context, letting cachito find the golang dependencies needed to build the lang server in golangci/golangci-lint.
- https://github.com/redhat-developer/devspaces-images/blob/devspaces-3-rhel-8/devspaces-udi/get-sources.sh
- https://github.com/redhat-developer/devspaces-images/blob/devspaces-3-rhel-8/devspaces-udi/sources
- https://github.com/redhat-developer/devspaces-images/blob/devspaces-3-rhel-8/devspaces-udi/container.yaml
- https://github.com/redhat-developer/devspaces-images/blob/devspaces-3-rhel-8/devspaces-udi/build/build_golang.sh#L62-L90
– https://osbs.readthedocs.io/en/latest/users.html?highlight=cachito%20node#fetching-source-code-from-external-source-using-cachitoOnce the remote_source map described above is set in container.yaml, you can now copy the upstream sources (with bundled dependencies) provided by cachito in your build image by adding:
COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
to your Dockerfile. From this point on, you will find the root of the upstream project at $REMOTE_SOURCE_DIR/app, and the project dependencies at $REMOTE_SOURCE_DIR/deps.then
WORKDIR $REMOTE_SOURCE_DIR/app
RUN source $CACHITO_ENV_FILE && go build .
Note that delv is not supported on IBM Z and Power, so you might need an arch-aware block in the dockerfile like this:
if [[ "$(uname -m)" == 'x86_64' ]]; then \
- clones
-
CRW-3102 dashboard :: migrate from pkgs.devel lookaside sources file with asset-node-modules-cache to cachito
- Closed
- is cloned by
-
CRW-3548 [RN] Updated Universal Developer Image - update to golang language server `gopls` 0.10.1
- Resolved
- is documented by
-
CRW-3410 [RN] Updated Universal Developer Image (UDI)
- Closed
- is related to
-
CRW-3117 Remove golangci-lint from theia installs (not required after updating gopls to 0.7.2)
- Resolved
- mentioned on