Getting started
Requirements¶
- On Linux:
- Docker 19+
docker-composev2+ or Helm
- On Windows:
- WSL
- or VirtualBox 6.1+ and Vagrant 2.2+
Creating a new SmartShape environment¶
Each SmartShape installation is composed of multiple environments (ex: dev, staging, prod...).
To create and initialize a new environment, please use the cluster initialize command.
This command will generate the following smartshape folder:
Default configuration
By Default:
- The environment's name is
dev. - The environment's hostname is
smartshape.io.test.
Generating a target¶
Each environment can lead to the generation of one (or more) targets. Each target is a specific
The available targets are:
helm(WIP) to deploy SmartShape on Kubernetes via the Helm package manager.docker-composeto deploy SmartShape on Docker viadocker-compose.
The helm target is still a work in progress
The helm target is still under heavy development and might not
work as expected.
Generate a target for specific environments
The cluster generate command accepts one or more optionnal path
to one ore more environments.
For example the following command will generate the docker-compose target only
for the dev environment:
Best practices
- Add all the files in the
smartshapefolder to your version control system (ex: Git). - Always remember to call the
cluster generatecommand after editingsmartshape.jsonnet.
Target files are read-only!
The files generated under the target folder are read-only on purpose, and any modification
will be completely erased by the next cluster generate command.
Running a target¶
Once a target has been generated, it can be managed using the corresponding tool(s).
For example, the docker-compose target generates a valid docker-compose.yml stack
and all the corresponding configuration files for all its services.
Then:
- Add the environment's hostname (
smartshape.io.testby default) to yourhostsfile. - Open the SmartShape Web application on https://smartshape.io.test/app/
registry.aerys.in Docker registry authentication
In order to be able to pull the container images used to run SmartShape, you must first
run docker login registry.aerys.in.