Running via docker is easy - after installing Docker (on Mac) and starting it, follow these steps.
/Users/raz is an example - use your own home or any other folder...
# first time, create a local db folder somewhere in your home. (if you are reinstalling it, just remove all its contents) # # cd /Users/raz # mkdir -p diesel/docker/db # # first time - pull the image locally (image name is raz-diesel): # docker pull razie/raz-diesel # # then just run the container: # docker run -p 127.0.0.1:9000:9000 -v/Users/raz/diesel/docker/db:/data/db -it razie/raz-diesel # # and point the browser to localhost:9000 #
If you need to see the logs / debug custom plugins, then you can run it with a console:
# to run just the container and debug it: # # docker run -p 127.0.0.1:9000:9000 -v/Users/raz/diesel/docker/db:/data/db -it --entrypoint=/bin/bash razie/raz-diesel #
docker/db will contain all the data of your local instance. You can delete the contents of this folder if you need to reinstall everything.
When you start it the first time, it will ask you to login to the central server and clone a reactor - use one of your reactors or a default one like "specs".
To update to a new version, just pull and run the new version. Before reinstalling from scratch, make sure to sync your changes.
You can access the local configuration by starting the docker server in console mode and changing the configuration file:
You can run this even easier via docker-compose quite nicely.
version: "2.1" services: diesel: image: razie/raz-diesel:latest ports: - 9003:9000 restart: unless-stopped volumes: - dieseldb:/data/db environment: THREADS: 2 diesel-config: build: context: ./dieseldocker/config dockerfile: ./Dockerfile command: ./bootstrap.sh working_dir: /dieseldocker volumes: - ./dieseldocker:/dieseldocker links: - diesel depends_on: - diesel volumes: dieseldb:
The first container is a diesel container, the second one is an optional bootstrap container, which will download the remote cloud configuration on the first startup. This is very useful when embedding diesel into another product.
docker-compose -f diesel-compose.yml up