Skip to content

Commit 1d77a86

Browse files
committed
compose: remove config_dir from build branch process
1 parent 5528ef3 commit 1d77a86

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/backends/compose/compose_backend.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
default_bitcoin_conf_args,
2020
get_architecture,
2121
parse_raw_messages,
22-
set_execute_permission,
2322
)
2423

2524
from .services import SERVICES
@@ -359,14 +358,6 @@ def default_config_args(self, tank):
359358
defaults += f" -addnode={self.get_container_name(dst_index, ServiceType.BITCOIN)}"
360359
return defaults
361360

362-
def copy_configs(self, tank):
363-
warnet_tor_dir = tank.config_dir / "tor"
364-
warnet_tor_dir.mkdir()
365-
shutil.copyfile(TEMPLATES / DOCKERFILE_NAME, tank.config_dir / DOCKERFILE_NAME)
366-
shutil.copyfile(TEMPLATES / "tor" / TORRC_NAME, warnet_tor_dir / TORRC_NAME)
367-
shutil.copyfile(TEMPLATES / ENTRYPOINT_NAME, tank.config_dir / ENTRYPOINT_NAME)
368-
set_execute_permission(tank.config_dir / ENTRYPOINT_NAME)
369-
370361
def add_services(self, tank: Tank, compose):
371362
services = compose["services"]
372363
assert tank.index is not None
@@ -386,7 +377,6 @@ def add_services(self, tank: Tank, compose):
386377
tank.DEFAULT_BUILD_ARGS + tank.build_args,
387378
arches=get_architecture(),
388379
)
389-
self.copy_configs(tank)
390380
elif tank.image:
391381
# Pre-built custom image
392382
image = tank.image

0 commit comments

Comments
 (0)