Skip to content

Commit

Permalink
Update docker image for recent change in CLI behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Sep 15, 2020
1 parent 687dcf0 commit 6420c3e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
7 changes: 7 additions & 0 deletions docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ in {
pkgs.coreutils
pkgs.bash_5
];

config = {
WorkingDir = "/notes";
Volumes = {
"/notes" = {};
};
};
}
9 changes: 3 additions & 6 deletions guide/c6176636.md → guide/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ In order to quickly get started, try:
```bash
mkdir ~/zettelkasten
echo "hello world" > ~/zettelkasten/hello.md
docker run --rm -i \
-p 8080:8080 \
-v ~/zettelkasten:/zettelkasten \
sridca/neuron \
neuron rib -ws 0.0.0.0:8080
cd ~/zettelkasten
docker run --rm -i -p 8080:8080 -v $(pwd):/notes sridca/neuron:dev neuron rib -ws 0.0.0.0:8080
```

This will run the neuron rib server on `~/zettelkasten` which can be accessed at <http://localhost:8080>.
This will run the neuron rib server on the current directory which can be accessed at <http://localhost:8080>. The docker image operates on `/notes` as the current working directory, which is where you are expected to mount your notes directory.
2 changes: 1 addition & 1 deletion guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ Available commands:
Proceed to the [[tutorial]].
[^nix]: Nix is a general package manager that you can use to manage other software and services as well. [See here](https://github.com/srid/neuron/issues/193#issuecomment-629557917). If you do not wish to install Nix, try the [[[c6176636]]].
[^nix]: Nix is a general package manager that you can use to manage other software and services as well. [See here](https://github.com/srid/neuron/issues/193#issuecomment-629557917). If you do not wish to install Nix, try the [[[docker]]].
1 change: 1 addition & 0 deletions guide/neuron.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
, "2011402:guide"
, "2013101:examples"
, "041726b3:cerveau"
, "c6176636:docker"
]
}

0 comments on commit 6420c3e

Please sign in to comment.