Alpine openjdk11 libstdc++ with Deepfactor

This article is no longer applicable since Deepfactor 2.1.  Issues identified below can be resolved by upgrading to Deepfactor 2.1.0 or greater.

When building with Deepfactor 2.0 or older Dockerfile.alpine.df or deploying an Alpine image with Deepfactor’s mutating webhook, you may encounter the following error messages.


Please apply the following fixes to remediate the errors.

Dockerfile.alpine.df build error message and fix:

Error, DeepFactor dependency fix for openjdk11 not met and cannot be installed. 

Please try 'apk add libstdc++' as root

 

Deepfactor Kubernetes webhook deployment error message and fix:

Error, DeepFactor dependency not met. Please either:

 - add 'apk add libstdc++' to image AFTER openjdk11 (musl) install 

OR

- add the following annotation and LD_LIBRARY_PATH to your deployment .yaml

annotations:
#df.k8-app.multilibc: "auto" # multi libc not supported with LD_LIBRARY_PATH
df.k8-app.ld-library-path: "/opt/deepfactor/lib/oslib"

 env:
- name: LD_LIBRARY_PATH
valueFrom:
fieldRef:
fieldPath: metadata.annotations['df.k8-app.ld-library-path']

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.