jpoode_ode:latest
Version 0.10.1.0
- Install docker-compose https://docs.docker.com/compose/install/
- Set the environment variable
DOCKER_HOST_IP
to the IP address of the machine that will be hosting the application containers. Alternatively, create a.env
file in the same directory asdocker-compose.yml
. - if you want to customise any Kafka parameters, simply add them as environment variables in
docker-compose.yml
, e.g. in order to increase themessage.max.bytes
parameter set the environment toKAFKA_MESSAGE_MAX_BYTES: 2000000
. To turn off automatic topic creation setKAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
-
Make sure visualization is enabled in your BIOS
-
Run Command: docker-machine start default
-
Run Command: docker-machine env
-
Set Docker environment variables: a. Manually set the environment variables shown in your system environment permanently (make them static) OR b. Run Command: @FOR /f "tokens=*" %i IN ('docker-machine env') DO @%i
-
docker-machine ls ;Lists docker containers and the associated ip and port numbers
Run full-build.cmd
or full-build.sh
according to your platform. This shell script will clone jpo-ode-private under jpo-ode, installs it, and then installs jpo-ode projects.
Run Command: docker-compose up -d
to start the containers for the applications. Containers include: one Zookeeper instance bound to port 2181, one Kafka instance bound to port 9092, and jpo-ode-svcs application bound to port 8080.
- Run
ifconfig
- Look for "inet addr:" under the desired network interface - generally "eth0" for Linux and "en0" for OSX
- Copy that IP address and then run command
export DOCKER_HOST_IP=<addr>
export GIT_SSL_NO_VERIFY=1
- Deploy and start all containers
docker-compose up --no-recreate -d
- Lists the running containers under docker-compose
docker-compose ps
- Start a container
docker-compose start <container>
- Restart a container
docker-compose restart <container>
- Stop a container
docker-compose stop <container>
- Stop all containers
docker-compose stop
- Docker builds fail with a
wget: bad address
error