File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 55# "dockeree",
66# ]
77# ///
8- """Python script for building Docker images via GitHub Actions.
9- """
8+ """Python script for building Docker images via GitHub Actions."""
9+
1010from argparse import ArgumentParser , Namespace
1111from dockeree import DockerImageBuilder
1212
@@ -79,4 +79,3 @@ def main() -> None:
7979
8080if __name__ == "__main__" :
8181 main ()
82-
Original file line number Diff line number Diff line change 55
66
77def config_data_root (data_root : str ) -> dict [str , str ]:
8- Path (data_root ).mkdir (parents = True , exists_ok = True )
8+ Path (data_root ).mkdir (parents = True , exist_ok = True )
99 settings = {}
1010 path = Path ("/etc/docker/daemon.json" )
1111 if path .is_file ():
@@ -18,13 +18,12 @@ def config_data_root(data_root: str) -> dict[str, str]:
1818
1919
2020def store_docker_on_mnt ():
21- sp .run (cmd = "systemctl stop docker" , shell = True , check = True )
21+ sp .run ("systemctl stop docker" , shell = True , check = True )
2222 settings = config_data_root ("/mnt/docker" )
2323 print (settings )
24- sp .run (cmd = "systemctl start docker" , shell = True , check = True )
25- sp .run (cmd = "docker info" , shell = True , check = True )
24+ sp .run ("systemctl start docker" , shell = True , check = True )
25+ sp .run ("docker info" , shell = True , check = True )
2626
2727
2828if __name__ == "__main__" :
2929 store_docker_on_mnt ()
30-
You can’t perform that action at this time.
0 commit comments