Hi there!
In our dockerfile, which is based on Camunda tomcat image, we’re using apt-get. It was working fine with 7.9.0-alpha, but fails on 7.9.0 with apt-get not found error.
Switching over to apk gives me another error:
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
So, the question is what package manager would you recommend for images derived from Camunda images?
Just in case it helps anyone else, 7.9.0-alpha image was based on Ubuntu 16.04.3. While 7.9.0 image is Alpine Linux v3.7. Not sure if it’s the rule Camunda team follows for alpha releases, but if so, any dockerfile created for an alpha version might not be working for a production release.
The solution was replacing apt-get with apk. The pitfall there was camunda user set in the base image. It caused any command requiring root (like apk) to fail.
Here is what made the trick:
USER root
RUN apk add --no-cache python
USER camunda
the solution would be to run a container as root
-u=“root”