Compare commits

...

4 commits

Author SHA1 Message Date
2682cca424 Update with real local dev options 2024-06-27 16:23:34 +02:00
edbe56055d Empty 2024-06-27 16:23:16 +02:00
d6a1f2b655 Update command for live exec 2024-06-27 16:23:01 +02:00
eb18eb03bc Add todo 2024-06-27 16:22:22 +02:00
4 changed files with 17 additions and 8 deletions

View file

@ -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/
```

View file

@ -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)

View file

@ -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")

View file

@ -1 +0,0 @@
variable http_backend_address {}