Compare commits
4 commits
8c8219b5fa
...
2682cca424
Author | SHA1 | Date | |
---|---|---|---|
2682cca424 | |||
edbe56055d | |||
d6a1f2b655 | |||
eb18eb03bc |
4 changed files with 17 additions and 8 deletions
|
@ -1,15 +1,26 @@
|
||||||
|
# Dev Setup
|
||||||
|
|
||||||
|
## For local development
|
||||||
|
|
||||||
# For local development
|
```bash
|
||||||
```
|
|
||||||
python3 -m venv ~/.venv --upgrade
|
python3 -m venv ~/.venv --upgrade
|
||||||
source ~/.venv/bin/activate
|
source ~/.venv/bin/activate
|
||||||
pip3 install --upgrade -r dev_requirements.txt
|
pip3 install --upgrade -r dev_requirements.txt
|
||||||
pip3 install --upgrade -r requirements.txt
|
pip3 install --upgrade -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
# For testing a dev version
|
## For testing a dev version
|
||||||
```
|
|
||||||
|
With uploading to pypi
|
||||||
|
|
||||||
|
```bash
|
||||||
pyb publish upload
|
pyb publish upload
|
||||||
pip3 install --upgrade ddadevops --pre
|
pip3 install --upgrade ddadevops --pre
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With locally installing the package
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pyb publish
|
||||||
|
pip3 install --upgrade -e /home/${USER}/repo/opensource/dda-devops-build/target/dist/ddadevops-4.12.1-dev/
|
||||||
|
```
|
||||||
|
|
|
@ -26,6 +26,7 @@ class DevopsTerraformBuild(DevopsBuild):
|
||||||
devops = self.devops_repo.get_devops(self.project)
|
devops = self.devops_repo.get_devops(self.project)
|
||||||
if self.terraform_service.uses_backend_git(devops):
|
if self.terraform_service.uses_backend_git(devops):
|
||||||
self.terraform_service.start_tf_backend_git_daemon(devops)
|
self.terraform_service.start_tf_backend_git_daemon(devops)
|
||||||
|
# TODO: Do we want a time.sleep(1) for usability?
|
||||||
|
|
||||||
def post_build(self):
|
def post_build(self):
|
||||||
devops = self.devops_repo.get_devops(self.project)
|
devops = self.devops_repo.get_devops(self.project)
|
||||||
|
|
|
@ -225,9 +225,7 @@ class TerraformBackendGitApi:
|
||||||
env = ""
|
env = ""
|
||||||
for key in credentials:
|
for key in credentials:
|
||||||
env = env + f'{key}' + "=" + f'{credentials[key]}' + " "
|
env = env + f'{key}' + "=" + f'{credentials[key]}' + " "
|
||||||
self.execution_api.execute(f'{env}' + " " + "terraform-backend-git &")
|
self.execution_api.execute_live(f"{env} nohup terraform-backend-git &")
|
||||||
self.execution_api.execute('sleep 3')
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.execution_api.execute("terraform-backend-git stop")
|
self.execution_api.execute("terraform-backend-git stop")
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
variable http_backend_address {}
|
|
Loading…
Reference in a new issue