Browse Source

Merge pull request #567 from FibreFoX/master

Added missing hints for running step-ca on Raspberry Pi
Carl Tashian 5 years ago
parent
commit
08f9bc0031
1 changed files with 29 additions and 0 deletions
  1. 29 0
      docs/docker.md

+ 29 - 0
docs/docker.md

@@ -101,6 +101,35 @@ HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
 It's working but curl complains because the certificate is not signed by an
 accepted certificate authority.
 
+### Notes for running on a Raspberry Pi
+
+When you run step-ca on a Raspberry Pi, you might get the following error in the
+logs of your docker container:
+
+```sh
+step-ca  | badger 2021/05/08 20:13:12 INFO: All 0 tables opened in 0s
+step-ca  | Error opening database of Type badger with source /home/step/db: error opening Badger database: Mmap value log file. Path=/home/step/db/000000.vlog. Error=cannot allocate memory
+```
+
+In that case you need to adjust the `db` configuration in the file `/home/step/config/ca.json`,
+you need to adjust `badgerFileLoadingMode` from being `""` to the value `FileIO`.
+
+```sh
+docker run -it -v step:/home/step smallstep/step-ca sh
+
+~ $ vi config/ca.json
+```
+
+You will end up with something similar like this:
+```json
+    "db": {
+          "type": "badger",
+          "dataSource": "/root/.step/db",
+          "badgerFileLoadingMode": "FileIO",
+    },
+```
+
+
 ## Dev environment bootstrap
 
 To initialize the development environment we need to grab the Root fingerprint