Prakhar Roy
07/05/2023, 5:50 AMTimothy Jones
07/05/2023, 6:57 AMDockerfile
Timothy Jones
07/05/2023, 6:57 AMTimothy Jones
07/05/2023, 6:59 AMPrakhar Roy
07/05/2023, 7:14 AMTimothy Jones
07/05/2023, 7:20 AMTimothy Jones
07/05/2023, 7:20 AMTimothy Jones
07/05/2023, 7:23 AMPrakhar Roy
07/05/2023, 10:14 AMTimothy Jones
07/05/2023, 10:22 AMMatt (pactflow.io / pact-js / pact-go)
Prakhar Roy
07/05/2023, 11:52 AMMatt (pactflow.io / pact-js / pact-go)
Prakhar Roy
07/06/2023, 1:40 PMPrakhar Roy
07/06/2023, 1:43 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
kubectl create configmap pactflow-license --from-file pactflow.lic
then
apiVersion: v1
kind: ConfigMap
metadata:
name: pactflow-license
namespace: pactflow
binaryData:
pactflow.lic: >- eAAAAE9GdbRGFS/CRDnABtJx...TRUNCATED...IGFueSBlZGl0b3Iu
then I add this to the deployment
spec:
containers:
- image: <http://quay.io/pactflow/enterprise:1.11.1|quay.io/pactflow/enterprise:1.11.1> # note, set version here
name: pactflow
resources: {}
volumeMounts:
- name: config-volume
mountPath: /home/pactflow-onprem.lic
subPath: pactflow.lic
volumes:
- name: config-volume
secret:
secretName: pactflow-license
Again, if that doesn’t make sense, I recommend you work with somebody at your company that does understand it.Prakhar Roy
07/07/2023, 12:01 PMkubectl create configmap pactflow-license --from-file pactflow.lic
On running the above command, I am not getting any data inside my Config-map. (See Screenshot below)
Also, after deploying my image onto PKS using deployment script, I am getting the error saying :
"Protected script /home/pact_broker_fork/lib/pact_broker/version.rb checksum error. The file has been modified. If this script requires a license file in order to run, this error may be caused by an invalid license file. Install the original unmodified file or contact the author of the script to get the original file or license file."
I checked with the Kubernetes team on this, they are unable to figure out why we have no data coming up from license file.
Everything in the script looks good to them, but they are not sure how we can read from the license file.Prakhar Roy
07/07/2023, 12:24 PMMatt (pactflow.io / pact-js / pact-go)
Prakhar Roy
07/10/2023, 5:47 AMTimothy Jones
07/10/2023, 6:15 AMTimothy Jones
07/10/2023, 6:29 AMONPREM_IMAGE
is clearly something you'll have to provide yourselfTimothy Jones
07/10/2023, 6:30 AM