Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git is missing from production Docker container image #342

Closed
Tracked by #318
mscottford opened this issue Oct 18, 2022 · 0 comments Β· Fixed by #355
Closed
Tracked by #318

git is missing from production Docker container image #342

mscottford opened this issue Oct 18, 2022 · 0 comments Β· Fixed by #355
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mscottford
Copy link
Member

The following error is encountered when running the analyze via the Docker container.

freshli-web on ξ‚  main [$] via .NET v6.0.400 via πŸ’Ž v3.1.2 on ☁️  scott@corgibytes.com
❯ docker pull corgibytes/freshli-cli
Using default tag: latest
latest: Pulling from corgibytes/freshli-cli
d6cb415e2683: Pull complete
e2306aaa1263: Pull complete
9218e026bfcb: Pull complete
001ee99a030d: Pull complete
92e2b324d6c5: Pull complete
33c36c3010b1: Pull complete
4cc51d287fd2: Pull complete
bf3ac2c25f65: Pull complete
47bb4e23660d: Pull complete
Digest: sha256:787cfdc95f1972db8b75e62936e85348887e83153f71f002feba77dd996bbe8c
Status: Downloaded newer image for corgibytes/freshli-cli:latest
docker.io/corgibytes/freshli-cli:latest

freshli-web on ξ‚  main [$] via .NET v6.0.400 via πŸ’Ž v3.1.2 on ☁️  scott@corgibytes.com took 6s
❯ docker run --rm corgibytes/freshli-cli analyze https://github.com/questdb/questdb
Preparing cache at /root/.freshli.
Results will be available at: https://freshli.app/bc0bd65a-38e7-4baf-b930-bdfc23a18bb3
2022/10/18 21:08:13.151|ERROR|Corgibytes.Freshli.Cli.Functionality.Analysis.LogAnalysisFailureActivity:19|Unhandled Exception System.ComponentModel.Win32Exception (2): Failed to start a process with file path 'git'. Target file or working directory doesn't exist, or the provided credentials are invalid. ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory '/root/.freshli/repositories/aa8ce284a844f959496b02c76294709dba78b5329e91d785da6235c50a06b572'. No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at CliWrap.Utils.ProcessEx.Start() in D:\a\CliWrap\CliWrap\CliWrap\Utils\ProcessEx.cs:line 66
   at CliWrap.Utils.ProcessEx.Start() in D:\a\CliWrap\CliWrap\CliWrap\Utils\ProcessEx.cs:line 76
   at CliWrap.Command.ExecuteAsync(CancellationToken cancellationToken) in D:\a\CliWrap\CliWrap\CliWrap\Command.cs:line 507
   at Corgibytes.Freshli.Cli.Functionality.Invoke.Command(String executable, String arguments, String workingDirectory) in /app/freshli/Corgibytes.Freshli.Cli/Functionality/Invoke.cs:line 25
   at Corgibytes.Freshli.Cli.Functionality.Git.CachedGitSourceRepository.Clone(CachedGitSource cachedGitSource) in /app/freshli/Corgibytes.Freshli.Cli/Functionality/Git/CachedGitSourceRepository.cs:line 132
   at Corgibytes.Freshli.Cli.Functionality.Git.CachedGitSourceRepository.CloneOrPull(String url, String branch) in /app/freshli/Corgibytes.Freshli.Cli/Functionality/Git/CachedGitSourceRepository.cs:line 68
   at Corgibytes.Freshli.Cli.Functionality.Git.CloneGitRepositoryActivity.Handle(IApplicationEventEngine eventClient) in /app/freshli/Corgibytes.Freshli.Cli/Functionality/Git/CloneGitRepositoryActivity.cs:line 32
   at Corgibytes.Freshli.Cli.Functionality.Engine.ApplicationEngine.HandleActivity(IApplicationActivity activity) in /app/freshli/Corgibytes.Freshli.Cli/Functionality/Engine/ApplicationEngine.cs:line 140
Analysis failed because: Failed to start a process with file path 'git'. Target file or working directory doesn't exist, or the provided credentials are invalid.
@mscottford mscottford added the bug Something isn't working label Oct 18, 2022
@edwinkortman edwinkortman moved this from To Do to In Progress in Freshli Oct 20, 2022
@edwinkortman edwinkortman self-assigned this Oct 20, 2022
Repository owner moved this from In Progress to Done in Freshli Oct 21, 2022
@mscottford mscottford added this to the v0.5.0 milestone Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants