-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35866d9
commit 9614bec
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
# NX Useful libs collection | ||
|
||
Checkout documentation: https://temarusanov.github.io/nx/ | ||
|
||
## Installing | ||
|
||
### Install Ansible | ||
|
||
Check full tutorial about Ansible installing [here](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-20-04) | ||
|
||
```bash | ||
sudo apt-add-repository ppa:ansible/ansible | ||
``` | ||
|
||
```bash | ||
sudo apt update | ||
``` | ||
|
||
```bash | ||
sudo apt install ansible | ||
``` | ||
|
||
If you don't have `docker` and `nvm` install then locate to `devops/ansible` and run | ||
|
||
```bash | ||
ansible-playbook prepare_environment.yml --ask-become-pass | ||
``` | ||
|
||
## Run | ||
|
||
Install dependencies | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
Use container command to create a docker image | ||
|
||
```bash | ||
npx nx container | ||
``` | ||
|
||
Run full environment in docker containers | ||
|
||
``` | ||
ansible-playbook start_app.yml --ask-become-pass | ||
``` |