Added missing hints for running step-ca on Raspberry Pi

See #351, #344, #279
pull/567/head
FibreFoX 3 years ago
parent 1788d09b44
commit 9607691f9c
No known key found for this signature in database
GPG Key ID: 80CBFD0984E39CCF

@ -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

Loading…
Cancel
Save