Skip to content

Commit

Permalink
Merge pull request #567 from FibreFoX/master
Browse files Browse the repository at this point in the history
Added missing hints for running step-ca on Raspberry Pi
  • Loading branch information
tashian committed May 10, 2021
2 parents 1788d09 + 9607691 commit 08f9bc0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08f9bc0

Please sign in to comment.