Skip to content

Commit

Permalink
Restarting contaners (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Sep 30, 2024
1 parent 5a3884f commit 044361d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/create_development_docker_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ def process(self, data: Any) -> Any:
return data


class NoRestartContainerStrategy(YamlProcessor):
def process(self, data: Any) -> Any:
for service in data["services"]:
data["services"][service]["restart"] = "no"
return data


class FileProcessor:
def __init__(self, input_file: str, output_file: str) -> None:
self.docker_compose_data = None
Expand Down Expand Up @@ -94,4 +87,6 @@ def process_file(self, strategy: YamlProcessor) -> None:

processor.process_file(LocalBuildContainersStrategy())

processor.process_file(NoRestartContainerStrategy())
# We used to change "restart" to "no". We know, though, that some users use Artemis in development
# version for actual scanning. Because the containers restart after a given number of scanning tasks,
# that would prevent such users from scanning.

0 comments on commit 044361d

Please sign in to comment.