Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import settings.yaml somehow? #8630

Open
conthan opened this issue Mar 9, 2020 · 2 comments
Open

import settings.yaml somehow? #8630

conthan opened this issue Mar 9, 2020 · 2 comments
Assignees

Comments

@conthan
Copy link

conthan commented Mar 9, 2020

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

@renmaosheng
Copy link
Contributor

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

@conthan
Copy link
Author

conthan commented Mar 11, 2020

Hello, could anyone assist please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants