Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurigauermarques/workstation
Ambiete virtualizado para desenvolvimento e estudos.
https://github.com/yurigauermarques/workstation
composer docker docker-compose php82 symfony ubuntu vagrant
Last synced: 25 days ago
JSON representation
Ambiete virtualizado para desenvolvimento e estudos.
- Host: GitHub
- URL: https://github.com/yurigauermarques/workstation
- Owner: yurigauermarques
- Created: 2023-11-09T18:06:37.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T20:32:57.000Z (3 months ago)
- Last Synced: 2024-10-12T13:01:04.921Z (25 days ago)
- Topics: composer, docker, docker-compose, php82, symfony, ubuntu, vagrant
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WorkStation PHP
Uma configuração padrão de Vagrant para desenvolvimento com Symfony PHP
## Pré-requisitos
> O que é necessário para o projeto rodar
- [Virtualbox-7.0](https://www.virtualbox.org/)
- [Vagrant](https://developer.hashicorp.com/vagrant)
- [Make](https://www.gnu.org/software/make/manual/make.html)## Softwares Instalados
- [Git](https://git-scm.com/)
- [PHP 8.2](https://www.php.net/releases/8.2/pt_BR.php)
> php8.2-zip php8.2-xml php8.2-pgsql
>
> php8.2-intl php8.2-mbstring php8.2-xdebug
- [Xdebug](https://xdebug.org/)
- [Composer](https://getcomposer.org)
- [Docker](https://www.docker.com/)
- [Docker Compose](https://github.com/docker/compose/)
- [Symfony CLI](https://symfony.com/download)## Instalação
Clone o repositório
```bash
git clone [email protected]:yurigauermarques/WorkStation.git work-station;
cd work-station;
sudo mkdir --parents --verbose /etc/vbox && sudo cp .scripts/vbox/networks.conf /etc/vbox/networks.conf;
```Adicione seus projetos dentro do diretório `work-station/projects`
## Comandos Básicos
> Foram criados atalhos dos comandos do vagrant por causa da injeção de informações via `.env`
- Levantar a VM
```bash
make up;
```- Desligara VM
```bash
make halt;
```- Conectar na VM por linha de comando
```bash
make ssh;
```- Abrir o Projeto utilizando VSCode
> - [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh)
> - [Configurar acesso SSH](#configurar-acesso-ssh)```bash
make code-projects;
```- Atualizar as configurações da VM
```bash
make reload;
```- Destruia VM
```bash
make destroy;
```## Configurar acesso SSH
> configurar o host no `.ssh/config` [SSH to Vagrant from VScode](https://medium.com/@lizrice/ssh-to-vagrant-from-vscode-5b2c5996bc0e)
- Executar o comando `make ssh-config`
- Copiar o conteúdo do retorno
- Colar o conteúdo no arquivo `~/.ssh/config`## Tips
> [Connect to a remote host from the terminal](https://code.visualstudio.com/docs/remote/troubleshooting#_connect-to-a-remote-host-from-the-terminal)
Por exemplo, para conectar no `remote_server` e abrir o diretório `/code/my_project`, run:
```bash
code --remote ssh-remote+remote_server /code/my_project
```