Skip to content

$PATH lost to Standard Bundles #839

@geowa4

Description

@geowa4

It appears the container's PATH is messed up when running container bundles through Relay. I was using the golang:onbuild image to quickly prototype my bundle. In it, I placed some simple scripts for each of my commands. For example, I would have /usr/local/bin/custom-command with contents

#!/usr/bin/env bash
set -e

/usr/local/bin/go-wrapper run custom-command

The error message I get back is

+ exec app private-list
/usr/local/bin/go-wrapper: 89: exec: app: not found

app is an executable located in $GOPATH/bin, which is added to $PATH here: https://github.com/docker-library/golang/blob/ce284e14cdee73fbaa8fb680011a812f272eae2e/1.6/Dockerfile#L21. If I switch my shell script to execute the Go binary directly (/go/bin/app custom-command) all works well.

I have not checked if other environment variables are lost.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions