This project provides a local development environment for the SLATE project.
On Linux, the user running MiniSLATE must be a member of the Docker group (or root).
Users can be added to the Docker group with: sudo usermod -a -G docker <username>
After installing the dependency requirements and pulling the MiniSLATE repository:
Make sure your Docker is running using systemctl status docker.
To start docker run systemctl enable --now docker.
On MacOS make sure the Docker Desktop application is running.
If desired, source shell_aliases will allow you to run the minislate command and the internal slate and kubectl commands from any directory.
Initialize the environment with ./minislate init
You can custom build your images using ./minislate build, but this is not necessary for a functioning minislate environment.
TIP: Access local directories by mapping them into the SLATE container: ./minislate init -v ~/WorkDir:/mnt
Utilize SLATE with ./minislate slate ...(cluster list, group list, etc)...
Or shell into the container and run it "natively":
$ ./minislate shell slate
# slate ...(cluster list, group list, etc)...
To completely destroy the environment such that it can be created again run: ./minislate destroy
Running ./minislate destroy --rmi will remove the built container images from your machine. This can nescasary if there was a failure or error in the build proccess. It is also needed to completely remove miniSLATE from your machine.
For a more detailed description of each MiniSLATE command view COMMANDS.md
MiniSLATE is a docker-compose orchestrated standard SLATE deployment (with a couple performance tweaks for personal machines).
MiniSLATE spins up 4 containers with docker-compose. These include:
Many errors that you will encounter with minislate are state related. They may be caused by a interruption in the init or build proccess. Unexpected restarts of certain system daemons can also cause problems. Most state related issues can be resolved by re-initializing the environment.
./minislate destroy && ./minislate init
Be sure this proccess doesn't get interrupted, or you may have to destroy again. At this point if the initialization fails for any reason, you may be dealing with an issue related to the images themselves. To remove and rebuild container images run the following:
./minislate destroy --rmi && ./minislate init
It may be nescasary to spin up Minislate in an automated way. For example, the Selenium portal tests automatically creates a Minislate cluster to test against. These clusters may require that tty is disabled inside the container. Minislate init can be run with the --selenium or -s flag to disable tty for automated testing.
Example:
./minislate init -s
Content type
Image
Digest
Size
410.8 MB
Last updated
over 5 years ago
docker pull slateci/ms-slate