Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
On the other hand, lightweight development environments can be created through Docker. That setup comes handy when you need to edit files and perform compilation from command line. Docker containers are great to run your TAT tests. Your development cycle can be speed up through the use of containers.
Often, when it is time to develop code for ACS, you end up trying to mixed up these elements:
...
Both VM and containers are provisioned through Ansible playbooks.
Download Virtualbox from official site:
https://www.virtualbox.org/wiki/Downloads
Vagrant allows you to script the Virtual Machines, so that all tasks related to create and destroy VM can be done through files and command line. Along with that, several tedious steps like setting up a NFS Share are greatly simplify using Vagrant.
...
And follow the install instructions for your Operating System.
pyenv is a tool that allows you to isolate python and their packages, so that you keep you deployment clean and reproduceable. It's likely your already use this tool, so my recomendation is to create an environment for python and activate it before running pip, the command that follows this paragraph.
...
pip install -r requirements.txt
Create .acsenv in your home folder
...
Warning: acs needs at least 4GB (4096MB) of memory.
As you know, push passwords in clear code to a repository is a bad practice, even for environments intended for development. Sensitive information is encrypted using Ansible Vault. To allow ansible to decrypt the information you just need to add a file to the home of ansible_env folder. Example:
...
Ask your instructor for the real password to be use here.
The cycle for a dev environment with virtual machine: build→ provision→destroy
...
Code Block |
---|
❯ vagrant status acs01 Current machine states: acs01 not created (virtualbox) |
Great!
To be added soon.