Skip to content

Commit

Permalink
first version of deployment instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
SAPOZHKOV Aleksandr committed Nov 26, 2018
1 parent 443d522 commit 1d94f7e
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions infrastructure/crm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Requirements
* Hardware
* 12GB free RAM
* 150GB free disk space
* Software
* Vagrant
* Vagrant reload
* Packer
* Oracle VirtualBox

Run in PowerShell:
```PowerShell
Set-ExecutionPolicy Bypass -Force;
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y packer
choco install -y vagrant --version 2.2.0
```
Then reboot for finishing insalling Vagrant and continue with the following snippet:
```PowerShell
vagrant plugin install vagrant-reload
```

### Removing Hyper-V
```
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
```

### Installing VirtualBox on Windows
```
choco install -y virtualbox
```

# Creating a development environment

## PowerShell
`cd` to `images` directory and run `.\preparevmimages.ps1 win2016-ad,win2016-sql2016dbrs,win2016-crm90-code`
`cd` to `stacks/sos-dev-ad-sql2016dbrs-crm20168.1.1` directory or to `dev-ad-sql2016dbrs-dynamics90-code`

If PowerShell scripts are allowed on the machine, run `..\localdeploy.ps1`. Otherwise run `vagrant up`.


Run `vagrant rdp CRM01` or RDP to `127.0.0.1:13392`
account: `sosalarm\_crmadmin`
pass: `c0mp1Expa~~`

## Resetting SQL and SP machine

```
vagrant destroy DB01, CRM01 --force
vagrant up
```

`vagrant rdp CRM01`
account: `sosalarm\_crmadmin`
pass: `c0mp1Expa~~`

# Cleaning up
`cd` to stack directory and run `vagrant destroy --force`
`cd` to `images` directory and run `removevmimages.ps1 win2016-ad,win2016-sql2016dbrs,win2016-crm90-code`

Consider also removing downloaded ISO files:

`rm images/packer_cache/*`

0 comments on commit 1d94f7e

Please sign in to comment.