This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from wunderio/feature/lando-provision
Add 'lando provision' tool.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: provision | ||
services: | ||
python: | ||
type: python:3.7 | ||
build_as_root: | ||
- "apt-get update -y" | ||
# Resolve the locale language issue. | ||
- "apt-get install locales locales-all sudo -y" | ||
- "locale-gen en_US.UTF-8" | ||
run_as_root: | ||
- rm -rf /app/ansible | ||
- git clone git@github.com:wunderio/WunderMachina.git --branch master --single-branch ansible | ||
- install -d -m 777 /var/www/.local/share | ||
- cd /app/ansible && pip install pipenv | ||
- cd /app/ansible && pipenv install | ||
overrides: | ||
environment: | ||
# Set the path to the Ansible vault file. Save the password to the `~/.ssh/ansible.vault` file. | ||
WT_ANSIBLE_VAULT_FILE: "/user/.ssh/ansible.vault" | ||
tooling: | ||
provision: | ||
description: Run Ansible provisioning commands | ||
cmd: | ||
- python: ./provision.sh | ||
pip: | ||
description: Run pip commands | ||
service: python | ||
pipenv: | ||
description: Run pipenv commands | ||
service: python |
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