-
Notifications
You must be signed in to change notification settings - Fork 601
Closed
Description
I have a build rule in Bazel that brings up an in-memory Postgres server. When running this test, it has to run postgresql's initdb
command. postgresql's initdb
command has a hardcoded requirement that you can't run as the root
user. There doesn't seem to be a flag or hook or configuration option that allows me to execute as another user either in the base image, or in the Cloud Builder yaml.
Affected builder image
gcr.io/cloud-builders/bazel
Expected Behavior
The tests aren't running as the root user
Actual Behavior
The tests are running as the root user
Steps to Reproduce the Problem
- Create a
cloudbuild.yaml
steps:
- name: gcr.io/cloud-builders/bazel
entrypoint: whoami
- See that it prints out
root
Metadata
Metadata
Assignees
Labels
No labels