Devspace is a tool to build, run and develop using Kubernetes.
Devspace in this instance will setup:
- Web (Using nginx + fpm + supervisor) (7.4)
- Redis
- MySQL (MariaDB 10.4 Galera)
- Elasticsearch
- RabbitMQ
- PHPMyAdmin
- RedisAdmin
- Mailhog
- Kibana
Simply install NodeJS and NPM first, then use npm install -g devspace
If your environment is set up correctly, you can now type devspace and it should just work, otherwise refer to https://devspace.sh/cli/docs/getting-started/installation
To use Devspace you need a local (or remote) Kubernetes cluster ready to go.
This can be done in a few ways.
- Enable Kubernetes in the Docker For Windows preferences panel.
- Install Minikube
- Enable Kubernetes in the Docker For Mac preferences panel.
- Install Minikube
- Install Minikube
- Use Ubuntu and install microk8s:
- run sudo snap install microk8s, and setup with microk8s status
Follow procedures outlined at the remote for how to get connected. Usually involves installing kubectl locally, and changing the ~/.kube/config file
Once Kubernetes is setup and responds to a kubectl get po -A (microk8s: microk8s kubectl get po -A) you can simply do the following:
kubectl create namespace <namespace>devspace use namespace <namespace>devspace dev -b
This will build the containers and launch everything up. This will also set up synchronization of files and ports from the cluster to the host.
XDebug is enabled and sending back signals on port 9003 using XDebug version 3.
- Site: http://magento2.microk8s.local/
- Admin: http://magento2.microk8s.local/admin
- PHPMyAdmin: http://127.0.0.1:8070
- RedisAdmin: http://127.0.0.1:8060
- Mailhog: http://127.0.0.1:8025
- Kibana: http://127.0.0.1:5601
- RabbitMQ: http://127.0.0.1:15672
- MySQL: localhost:3306
- Redis: localhost:6379
- Elasticsearch: localhost:9300 and localhost:9200
- RabbitMQ: localhost:5672
- Mailhog: localhost:1025
Open a terminal and type devspace print, then scroll up to the top.
- phpmyadmin: root / rootpw
The simple way is to look in the DevSpace DevUI, you can select to enter containers there and do stuff.
If you want to enter the CLI of the Web container, simply run: devspace run cli
To install the bare developer setup, you simply run: devspace run importdb to import the bare db, and after that it should all be up and running
username: admin password: password123
images come with MagePack installed, refer to https://github.com/magesuite/magepack on how to use it