diff --git a/src/runboat/kubefiles/deployment.yaml b/src/runboat/kubefiles/deployment.yaml index cdd4ce0..2057d50 100644 --- a/src/runboat/kubefiles/deployment.yaml +++ b/src/runboat/kubefiles/deployment.yaml @@ -26,6 +26,9 @@ spec: mountPath: /runboat - name: data mountPath: /mnt/data + - name: data + mountPath: /opt/odoo-venv + subPath: odoo-venv envFrom: - secretRef: name: odoosecretenv diff --git a/src/runboat/kubefiles/runboat-clone-and-install.sh b/src/runboat/kubefiles/runboat-clone-and-install.sh index 447cdb1..80f1911 100755 --- a/src/runboat/kubefiles/runboat-clone-and-install.sh +++ b/src/runboat/kubefiles/runboat-clone-and-install.sh @@ -2,15 +2,17 @@ set -ex -DEBIAN_FRONTEND=noninteractive apt-get -yq install rsync # If it exists, copy the previously initialized venv. if [ -f /mnt/data/initialized ] ; then - rsync -a --delete /mnt/data/odoo-venv/ /opt/odoo-venv pip list + # Install 'deb' external dependencies of all Odoo addons found in path. + DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends $(oca_list_external_dependencies deb) exit 0 fi +DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync + # Remove addons dir, in case we are reinitializing after a previously # failed installation. rm -fr $ADDONS_DIR