vic icon indicating copy to clipboard operation
vic copied to clipboard

import settings.yaml somehow?

Open conthan opened this issue 5 years ago • 2 comments

Hello, I am trying to deploy a container which requires importing a local settings.yaml file to configure a web server with a handful of settings. I have read that VIC does not support using docker to map a local host file or folder to a container. I have the settings.yaml file, is there a way to put this in a location on a datastore and reference it when trying to create the container? I am using a container called psono (a password manager). It has a web server container component. I'm sure there are other containers that exist out there that may call local files or something similar for configuration at deployment. In the command below /path/to/modified in bold would be my local path on a linux or windows docker host. Am I able to reference a vcenter/vsphere host datastore path here when using a VCH? Like "datastore1/path/volumes/settings.yaml:/root/.psono_server/settings.yaml"

This is the docker command to run the container: docker run --name psono-server
--sysctl net.core.somaxconn=65535
-v /path/to/modified/settings.yaml:/root/.psono_server/settings.yaml
-d --restart=unless-stopped -p 10100:80 psono/psono-server:latest

Any assistance is appreciated. Thanks in advance!

reference to vic limitations: https://vmware.github.io/vic-product/assets/files/html/1.3/vic_app_dev/container_limitations.html

reference to the container I am trying to create: https://doc.psono.com/mydoc_install_server.html

conthan avatar Mar 09 '20 15:03 conthan

Jun, could you please provide some guidance here? thanks.

renmaosheng avatar Mar 10 '20 12:03 renmaosheng

Hello, could anyone assist please?

conthan avatar Mar 11 '20 16:03 conthan