Skip to content

Commit aea8677

Browse files
committed
fix issues
1 parent 2686b25 commit aea8677

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

build_images.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
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+
1010
from argparse import ArgumentParser, Namespace
1111
from dockeree import DockerImageBuilder
1212

@@ -79,4 +79,3 @@ def main() -> None:
7979

8080
if __name__ == "__main__":
8181
main()
82-

docker.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def 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

2020
def 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

2828
if __name__ == "__main__":
2929
store_docker_on_mnt()
30-

0 commit comments

Comments
 (0)