This tutorial is designed to explain docker and what you can do with it.
Table of Contents | ||||
---|---|---|---|---|
|
...
- If you haven't already, fire up the system using `docker-compose up d` up d` in `../oms-docker/docker`
- Now, from the same directory, use docker-compose down -v
- This should shut the system down and remove the container volumes, resetting the data inside the containers
- Fire up the system again, this time with `docker-compose up` (without the -d)
- This keeps the terminal attached (not detached) to the docker process
- Which allows you to see the logs as it is running!
- This keeps the terminal attached (not detached) to the docker process
- Right click on the terminal and select to open a new terminal
- You should now have 2 terminals, both in `oms-docker/docker/`, 1 still running the system, one ready for use.
- In the new terminal issue the command `docker-compose logs omscore`
- This shows just the logs from the core microservice!
- Try running `docker-compose logs` instead
- This shows all the logs!
- You can even try `docker-compose logs -f` to stay attached to the logs
- Execute `docker-compose exec omscore bash`
- You are now in a terminal inside the omscore container!
- You can look at the files and processes running in the container, for example type `ps` in the container to see the processes
- Execute the command `php artisan migrate:refresh --seed`
- You have just reset the omscore database!
- For more core related commands see the usage tips page.
- Exit the container by typing exit
- You should now be back in your own terminal
- Execute `bash ./oms_setup.sh --reset` in `oms-docker/docker`
- This resets all the containers you have!
- Build a single container using `bash ./oms_setup.sh -c=traefik`
- Using the -c parameter you can specify a single container to perform actions on
- Try running the system again, you'll notice it will act similar to the first installation of it.
...