RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal=3.6.7-1~18.04
-RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install \
- ca-certificates
+RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install ca-certificates
COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
COPY --from=INSTALL /usr/local/lib/python3.6/dist-packages /usr/local/lib/python3.6/dist-packages
COPY --from=INSTALL /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
COPY --from=INSTALL /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/
+COPY scripts/ scripts/
+
########################################################################
# Used for local storage
ENV OSMLCM_VCA_KUBECTLPATH /usr/bin/kubectl
ENV OSMLCM_VCA_JUJUPATH /usr/local/bin/juju
+# helm
+# ENV OSMLCM_VCA_STABLEREPOURL https://charts.helm.sh/stable
+# ENV OSMLCM_VCA_HELM_CA_CERTS <ca-cert>
+
# logs
# ENV OSMLCM_GLOBAL_LOGFILE /app/log/lcm.log
# ENV OSMLCM_GLOBAL_LOGLEVEL DEBUG
# Run app.py when the container launches
-CMD python3 -m osm_lcm.lcm
+CMD [ "/bin/bash", "scripts/start.sh" ]
--- /dev/null
+#!/bin/bash
+
+###############################################################################
+# Copyright 2021 Canonical Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+###############################################################################
+
+if [ "$OSMLCM_VCA_HELM_CA_CERTS" ]; then
+ echo "$OSMLCM_VCA_HELM_CA_CERTS" >> /etc/ssl/certs/ca-certificates.crt
+fi
+
+python3 -m osm_lcm.lcm