initContainers:
- name: git-clone-openg2p
image: bitnami/odoo
command: ["/bin/sh","-c"]
args: ['apt-get git && git clone https://github.com/repo.git && git clone https://github.com/repo.git /bitnami/odoo']
volumeMounts:
- name: odoo-data
mountPath: /bitnami/odoo
I need to add add-ons by cloning git repository into /bitnami/odoo.
This is my init container configuration in yaml file. When I helm install and create pod it says "Invalid operation git" in the logs of pod.
As far as I know, there is no command apt-get get, you probably want:
apt-get install -y git
apt-get git
The correct syntax is
apt-get install --yes git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With