-
Notifications
You must be signed in to change notification settings - Fork 11
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
Scala apps deploy fail #18
Comments
Can you provide a complete log of slugbuilder pod after it terminates? I suspect it has to do with permissions applied to the slugbuilder user or sec profile applied to the pod. What version of kubernetes are you running Hephy on? |
This is the last lines of log of the slugbuilder pod before it terminates �[1G [success] Total time: 57 s, completed Mar 5, 2020 4:06:02 PM Same error is returned in two Kubernetes clusters I control version 1.15.10 and 1.15.5 |
Is there already a file/folder called |
This seems to be a step in the buildpack that is very specific to Heroku. You can also just clone the scala buildpack repo and remove those last few lines. Then set BUILDPACK_URL to your cloned version. |
They added this export functionality here in the scale buildpack and I am not sure why? heroku/heroku-buildpack-scala#135 |
no there is none
Thank you for idea seems a good workaround. Will create my custom buildpack for now.
Indeed. It seems to me is regarding running different buildpacks over the same app perhaps? This means building scala apps on latest workflow is broken since the default buildpack points to one that is after that change. Perhaps custom buildpacks are needed for workflow? Is there any way of running the build as root? Thank you for all the help. |
Another way to try to solve this would be to try creating a psp (pod security policy) for the deis namespace:
https://docs.bitnami.com/kubernetes/how-to/secure-kubernetes-cluster-psp/ Not sure if it will solve it though. This would mean that minikube or wherever you are running k8s is restricting the pods in some way. @UlTriX , are you running minikube with a vm driver set? |
I am going to try to mess around with the security policies. I am not running in minikube. I tested in two k8s clusters installed in bare metal (one fresh install) and also on local Docker Desktop (k8s activated). |
Trying to deploy a scala app using buildpack (builder v2.13.3 and slugbuilder v2.7.3) but it fails when the buildpack tries to write in the base dir (access denied).
Tried the provided buildpacks and custom pointing to latest version same issue.
Line in question that fails of the buildpack
cat << EOF > "${BASE_DIR}/export"
Seems like an issue with folder permission and the user that runs the buildpack.
Any ideas of what is happening and some possible solutions?
Thanks in advance.
The text was updated successfully, but these errors were encountered: