Quickstart
To get started extremely quick using Docker:
docker network create immudbnet
docker run -d --net immudbnet -it --rm --name immudb -p 3322:3322 codenotary/immudb:latest
docker run -it --rm --net immudbnet --name immuclient codenotary/immuclient:latest -a immudbDownload the binaries
General
macOS specific
The community already added immudb to HomeBrew, therefore you can simply run
brew install immudbIn case you want to run immudb as a service, please check the following guideline.
Build the binaries
To build the binaries yourself, simply clone this repo and run
make allLinux (by component)
GOOS=linux GOARCH=amd64 make immuclient-static immuadmin-static immudb-staticMacOS (by component)
GOOS=darwin GOARCH=amd64 make immuclient-static immuadmin-static immudb-staticWindows (by component)
GOOS=windows GOARCH=amd64 make immuclient-static immuadmin-static immudb-staticFirst start
Run immudb binary
# run immudb in the foreground
./immudb
# run immudb in the background
./immudb -dRun immudb as a service
# install immudb service
./immudb service install
# check current immudb service status
./immudb service status
# stop immudb service
./immudb service stop
# start immudb service
./immudb service startThe linux service is using the following defaults:
| File or configuration | location |
|---|---|
| all configuration files | /etc/immudb |
| all data files | /var/lib/immudb |
| pid file | /var/run/immudb.pid |
| log files | /var/log/immudb |
Run immugw as a service
immugw can be found in a different repository. You can find a build guideline in the Readme of the repository.
Please make sure to build or download the immugw and immuadmin component and save them in the same work directory when installing the service.
# install immugw service
./immugw service install
# check current immugw service status
./immugw service status
# stop immugw service
./immugw service stop
# start immugw service
./immugw service startThe linux service is using the following defaults:
| File or configuration | location |
|---|---|
| all configuration files | /etc/immudb |
| pid file | /var/run/immugw.pid |
| log files | /var/log/immudb |
Docker
If you just want to run immudb and connect using immuclient:
docker network create immudbnet
docker run -d --net immudbnet -it --rm --name immudb -p 3322:3322 codenotary/immudb:latest
docker run -it --rm --net immudbnet --name immuclient codenotary/immuclient:latest -a immudbAll services and CLI components are also available as Docker images on dockerhub.
| Component | Container image |
|---|---|
| immudb | https://hub.docker.com/r/codenotary/immudb |
| immugw | https://hub.docker.com/r/codenotary/immugw |
| immuadmin | https://hub.docker.com/r/codenotary/immuadmin |
| immuclient | https://hub.docker.com/r/codenotary/immuclient |
Run immudb
docker run -it -d -p 3322:3322 -p 9497:9497 --name immudb codenotary/immudb:latestrun it with persistent data and listening to all interfaces:
docker run -it -d -p 3322:3322 -p 9497:9497 -v immudb:/var/lib/immudb --env IMMUDB_ADDRESS=0.0.0.0 --name immudb codenotary/immudb:latestRun immugw
docker run -it -d -p 3323:3323 --name immugw --env IMMUGW_IMMUDB_ADDRESS=immudb codenotary/immugw:latestRun immuadmin
You can either find immuadmin in the immudb container (/usr/local/bin/immuadmin) or run the Docker container to connect to the local immudb.
docker run -it --rm --name immuadmin codenotary/immuadmin:latest statusRun immuclient
You can either find immuclient in the immudb container (/usr/local/bin/immuclient) or run the Docker container to connect to the local or remote immudb.
docker run -it --rm --name immuclient codenotary/immuclient:latest -a <immudb-host>Build the container images yourself
If you want to build the container images yourself, simply clone this repo and run:
docker build -t myown/immudb:latest -f Dockerfile .
docker build -t myown/immuadmin:latest -f Dockerfile.immuadmin .
docker build -t myown/immuclient:latest -f Dockerfile.immuclient .