<commit_before>﻿using SIM.Loggers;
using JetBrains.Annotations;
using SIM.Pipelines.Processors;
using SIM.Pipelines.BaseProcessors;
using Sitecore.Diagnostics.Base;

namespace SIM.Pipelines.Install.Containers
{
  [UsedImplicitly]
  public class RunDockerProcessor : RunCmdCommandBaseProcessor
  {
    protected override string GetCommand(ProcessorArgs procArgs)
    {
      return "docker-compose.exe up -d";
    }

    protected override string GetExecutionFolder(ProcessorArgs procArgs)
    {
      InstallContainerArgs args = (InstallContainerArgs)procArgs;

      return args.Destination;
    }

    protected override ILogger GetLogger(ProcessorArgs procArgs)
    {
      InstallContainerArgs args = (InstallContainerArgs)procArgs;

      Assert.IsNotNull(args, nameof(args));

      return args.Logger;
    }

    public override bool IsRequireProcessing([NotNull] ProcessorArgs procArgs)
    {<commit_msg>#697 Use the --no-cache option<commit_after>﻿using SIM.Loggers;
using JetBrains.Annotations;
using SIM.Pipelines.Processors;
using SIM.Pipelines.BaseProcessors;
using Sitecore.Diagnostics.Base;

namespace SIM.Pipelines.Install.Containers
{
  [UsedImplicitly]
  public class RunDockerProcessor : RunCmdCommandBaseProcessor
  {
    protected override string GetCommand(ProcessorArgs procArgs)
    {
      return "docker-compose.exe build --no-cache && docker-compose.exe up -d";
    }

    protected override string GetExecutionFolder(ProcessorArgs procArgs)
    {
      InstallContainerArgs args = (InstallContainerArgs)procArgs;

      return args.Destination;
    }

    protected override ILogger GetLogger(ProcessorArgs procArgs)
    {
      InstallContainerArgs args = (InstallContainerArgs)procArgs;

      Assert.IsNotNull(args, nameof(args));

      return args.Logger;
    }

    public override bool IsRequireProcessing([NotNull] ProcessorArgs procArgs)
    {
{'fraction_non_alphanumeric': 0.07712765957446809, 'fraction_numerical': 0.0015957446808510637, 'mean_word_length': 4.125340599455041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4890197', 'n_tokens_mistral': 543, 'n_tokens_neox': 520, 'n_words': 115}