Open mymasse opened 4 years ago
Digging more it is the same image that was fixed in #4612, a bit confused now why it doesn't work.
Hello Stratos team!
We might be able to provide insight here. We made a change in cf-for-k8s 1.0.0 that validates that the user is non-root. The underlying function requires that the user ID is an integer:
https://github.com/cloudfoundry-incubator/eirini/pull/116/files
We've found that this causes issues when pushing Stratos because the app creates a user with the string ID jetstream
. We were able to get Stratos up and running by making the following changes to the Docker image:
diff --git a/deploy/Dockerfile.all-in-one b/deploy/Dockerfile.all-in-one
index f57703953..9f428fd97 100644
--- a/deploy/Dockerfile.all-in-one
+++ b/deploy/Dockerfile.all-in-one
@@ -48,6 +48,6 @@ RUN usermod -aG users jetstream
# Ensure that the /srv folder is in the users group so that the jetstream user can write to it
RUN chgrp users /srv && chmod 775 /srv
-USER jetstream
+USER 2000
Stratos Version
4.2.0
Frontend Deployment type
Backend (Jet Stream) Deployment type
Expected behaviour
Succesful deploy with cf push using the docker image
Actual behaviour
Fails to start application. This is the same issue as #4612
Steps to reproduce the behavior
cf push -f manifest.yml
manifest.yml
Log output covering before error and any error statements