Skip to content

compose app packgeLocation implementation - #280

Merged
vireshnavalli merged 5 commits into
developmentfrom
chore/package-location
May 19, 2026
Merged

compose app packgeLocation implementation#280
vireshnavalli merged 5 commits into
developmentfrom
chore/package-location

Conversation

@vireshnavalli

Copy link
Copy Markdown
Contributor

@vireshnavalli vireshnavalli added this to the SPRINT_19_PR2 milestone May 15, 2026
@vireshnavalli vireshnavalli self-assigned this May 15, 2026
@vireshnavalli vireshnavalli linked an issue May 15, 2026 that may be closed by this pull request
4 tasks
@vireshnavalli vireshnavalli changed the title Chore/package location compose app packgeLocation implementation May 15, 2026
Comment thread scripts/easy-cli/cli-harbor-ops.sh Outdated
discover_app_packages_from_harbor() {
echo "🔍 Discovering app packages from Harbor OCI Registry..." >&2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to have a separate PR for formatting the codebase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed as part of #287

Comment thread shared-lib/workloads/dockerCliClient.go Outdated

// Stop and remove container
removeCmd := exec.CommandContext(ctx, c.dockerBinary, "rm", "-f", containerID)
removeCmd := exec.CommandContext(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A lot of formatting happening in this file as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Corrected

Comment thread shared-lib/workloads/dockerCliClient.go Outdated
var container ComposeContainer
if err := json.Unmarshal([]byte(line), &container); err != nil {
fmt.Printf("[DEBUG] Failed to parse line as JSON: %s, error: %v\n", line, err)
fmt.Printf(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Printf should be avoided in the library code. Either we should inject a logger, or create a multierror in this case and return it. Anyways, parsing should not fail as long as we don't have docker version incompatibility with the sdk.

Comment thread shared-lib/workloads/dockerCliClient.go
Comment thread shared-lib/workloads/dockerCliClient.go Outdated
defer func() {
// errcheck: handle os.Remove error
if err := os.Remove(archivePath); err != nil && !os.IsNotExist(err) {
fmt.Printf("Warning: failed to remove archive: %v\n", err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can ignore this error, or seems like now we need to use the logger in the library code. Printf is not a good idea.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have removed this function

Comment thread shared-lib/workloads/dockerCliClient.go Outdated

tr := tar.NewReader(gzr)

composeNames := map[string]bool{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is good, but the generateAbsProjectFilepath still relies on docker-compose.yml, so need to introduce this change over there as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I have corrected this.

Comment thread shared-lib/workloads/dockerCliClient.go
Signed-off-by: vireshnavalli <viresh-r.navalli@capgemini.com>
Signed-off-by: vireshnavalli <viresh-r.navalli@capgemini.com>
Signed-off-by: vireshnavalli <viresh-r.navalli@capgemini.com>
Signed-off-by: vireshnavalli <viresh-r.navalli@capgemini.com>
@vireshnavalli
vireshnavalli merged commit f75fc0a into development May 19, 2026
6 of 7 checks passed
@vireshnavalli
vireshnavalli deleted the chore/package-location branch May 21, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK: ] code : compose app packgeLocation implementation

3 participants