-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
steampipe in Docker/DockerFile --exit status 255 #209
Comments
Hey @astro44 ... Thanks for reporting this, a couple of questions: Are you trying to use / install steampipe as root in your container? Postgres refuses to run as root, and we don't catch / handle this case well yet (#167). If so, perhaps you can try setting your container as a non-root user? We'd love to understand more about your use case for Steampipe? How are you trying to use it inside a container? (Helps us prioritize our features and approach.) Thanks! |
@e-gineer Thanks for the fast response... it really doesn't matter what container. The objective is to get it to run in docker with any of these flavours, right now attempting Amazon Linux: Current attempt:
|
The key thing is to run all steampipe commands as a non-root user (see #167). For example, if you inject these extra lines into your Dockerfile it seemed to work for me:
I've just built a quick working example for Ubuntu that may also be helpful:
I was able to use it successfully as follows:
|
@e-gineer Thank you... I still get this error (*same error w/ Ubuntu): #=> ERROR [ 9/13] RUN steampipe plugin install steampipe 14.8s using this dockerfile, based on your suggestions:
|
I think you may need to check your Dockerfile again? That one works for me. Here is my output, which includes 15 steps. Your error above seems to indicate 13 steps:
|
@e-gineer got it working.... had to switch to intel based machine!! Thanks for all your help |
Glad you got it going! |
after attempted install getting this message:
bash-4.2# steampipe plugin install aws
Installed plugin: aws v0.5.0
Documentation: https://hub.steampipe.io/plugins/turbot/aws
panic: x Initializing database... FAILED! exit status 255
goroutine 1 [running]:
github.com/turbot/steampipe/utils.FailOnErrorWithMessage(0x1047f60, 0xc0000e0540, 0xeba31e, 0x22)
/home/runner/work/steampipe/steampipe/utils/errors.go:28 +0x137
github.com/turbot/steampipe/db.EnsureDBInstalled()
/home/runner/work/steampipe/steampipe/db/install.go:91 +0xdba
github.com/turbot/steampipe/cmd.refreshConnections(0x0, 0x0)
/home/runner/work/steampipe/steampipe/cmd/plugin.go:364 +0x40
github.com/turbot/steampipe/cmd.runPluginInstallCmd(0xc00016ab00, 0xc0001136e0, 0x1, 0x1)
/home/runner/work/steampipe/steampipe/cmd/plugin.go:263 +0x62a
github.com/turbot/steampipe/cmdconfig.OnCmd.func1(0xc00016ab00, 0xc0001136e0, 0x1, 0x1)
/home/runner/work/steampipe/steampipe/cmdconfig/builder.go:30 +0x65
github.com/spf13/cobra.(*Command).execute(0xc00016ab00, 0xc0001136b0, 0x1, 0x1, 0xc00016ab00, 0xc0001136b0)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x16e0980, 0x1, 0x1, 0x0)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
github.com/turbot/steampipe/cmd.Execute(0xc000488000, 0x1)
/home/runner/work/steampipe/steampipe/cmd/root.go:54 +0x6d
main.main()
/home/runner/work/steampipe/steampipe/main.go:28 +0xa0
The text was updated successfully, but these errors were encountered: