some containers stay in the same state unless we force recreate them, lets add this as an optional boolean argument to the configuration
game plan
import yaml
yaml_string = """
name: hello
traits:
- ONE_HAND
- ONE_EYE
"""
data = yaml.safe_load(yaml_string)
print(data)
# Output: {'name': 'hello', 'traits': ['ONE_HAND', 'ONE_EYE']}
print(type(data))
# Output: <class 'dict'>
repos:
- name: git-workshop
branch: cicd
path: /home/sce/git-workshop
docker-compose up --build -d --force-recreate --no-deps SPACE_SEPARATED_CONTAINER_NAMES_GO_HERE
below
|
def update_repo(repo_config: RepoToWatch) -> RepoUpdateResult: |
some containers stay in the same state unless we force recreate them, lets add this as an optional boolean argument to the configuration
game plan
--developmentmode, we dont load a yml file. lets run the server without this argument locally, and create a config fileconfig.ymllikeforce_recreate: [ 'list of containers here']below
sce-cicd/server.py
Line 136 in 5b9c023