-
Notifications
You must be signed in to change notification settings - Fork 229
[docs-only] Add a minimalistic docker run example #11301
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
Conversation
|
|
||
| ```bash | ||
| mkdir -p $HOME/ocis/ocis-config \ | ||
| mkdir -p $HOME/ocis/ocis-data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the minimal dev setup I use:
. for config
~/.ocis for data (default)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many possibilities, as you write. For ease of handling, use a subdir named ocis in your home and put everything else in there. Then you only need to "kill" one directory for starting from scratch. Remember, it is plain minimal eval only.
|
|
||
| ```bash | ||
| docker run --rm -it \ | ||
| --mount type=bind,source=$HOME/ocis/ocis-config,target=/etc/ocis \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-v $(pwd):/etc/ocis/ for dev config in current working dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for using --mount is, that on some OS (like macOS at least in the past), do have some "challenges" using -v, due to how docker implemented stuff. With mount, this is avoided completely. Additionally, we clearly make a link between the paths used.
docs/ocis/guides/ocis-mini-eval.md
Outdated
| docker run --rm -it \ | ||
| --mount type=bind,source=$HOME/ocis/ocis-config,target=/etc/ocis \ | ||
| --mount type=bind,source=$HOME/ocis/ocis-data,target=/var/lib/ocis \ | ||
| owncloud/ocis init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see insecure env var below. init also has an insecure option to skip the prompt below: init --insecure yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, fixed.
|
kobergj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like ❤️
[docs-only] Add a minimalistic docker run example



This PR adds a minimalistic guide to run ocis based on
docker run(not compose !) - for eval only !To have a local rendering, check out and run
make -C docs docs-serveand open a browser with URL:http://localhost:1313/ocis/guides/ocis-mini-eval/