GithubHelp home page GithubHelp logo

Comments (6)

cobbr avatar cobbr commented on July 17, 2024

Hey @Comanio00, I'm going to guess that you have not re-built Covenant since you pulled down the latest copy? We have to be sure that the container has the submodules, not just the docker host.

First, verify that you initialized the submodules properly:

$ ~/Covenant/Covenant > ls Data\Tasks\src\SharpSploit
CHANGELOG.md      README.md         SharpSploit.Tests
LICENSE           SharpSploit       SharpSploit.sln
$ ~/Covenant/Covenant > ls Data\Tasks\src\Rubeus
CHANGELOG.md LICENSE      README.md    Rubeus       Rubeus.sln

Now that we know you have the submodules, let's make sure the submodules are present in the container:

$ ~/Covenant/Covenant > docker exec -it covenant ls /app/Data/Tasks/src/SharpSploit
CHANGELOG.md  README.md    SharpSploit.Tests
LICENSE       SharpSploit  SharpSploit.sln
$ ~/Covenant/Covenant > docker exec -it covenant ls /app/Data/Tasks/src/Rubeus
CHANGELOG.md  LICENSE  README.md  Rubeus  Rubeus.sln

Assuming that your docker host has the submodules, but your container does not, then give this a try:

$ ~/Covenant/Covenant > docker stop covenant
$ ~/Covenant/Covenant > docker rm covenant
$ ~/Covenant/Covenant > docker build -t covenant .
$ ~/Covenant/Covenant > docker run -it -p 7443:7443 -p 80:80 -p 443:443 --name covenant -v /absolute/path/to/Covenant/Covenant/Data covenant --username AdminUser --computername 0.0.0.0

from covenant.

cobbr avatar cobbr commented on July 17, 2024

Went ahead and added details on using docker's -v parameter to the README. This may make things easier for you, and I've been meaning to make this change anyway.

7bfb67b

from covenant.

dtrizna avatar dtrizna commented on July 17, 2024

Had the same problem after last commit.
Acknowledge that volume mount with -v solves it.

from covenant.

cobbr avatar cobbr commented on July 17, 2024

Turns out there was an issue with Docker not copying over the correct files that Covenant was checking for existence of the submodules.

Pushed out a fix df42fcd
Let me know if you still have issues. You should be able to use the -v parameter or not.

from covenant.

Comanio00 avatar Comanio00 commented on July 17, 2024

Thank you.
This decision helped. Everything is working.

When starting Covenant a warning appears:

Password: *******
Hosting environment: Development
Content root path: /app
Now listening on: http://0.0.0.0:80
Using Covenant certificate with hash: 3F03FC3C0AB9E88467A3CB94E0D9DF6624AC02B3
warn: Microsoft.AspNetCore.Server.Kestrel[0]
Overriding address(es) 'http://+:80'. Binding to endpoints defined in UseKestrel() instead.
Hosting environment: Development
Content root path: /app
Now listening on: https://0.0.0.0:7443
Application started. Press Ctrl+C to shut down.
warn: Microsoft.EntityFrameworkCore.Query[10103]
Query: '(from HttpListener _1 in DbSet select [_1]).FirstOrDefault()' uses First/FirstOrDefault/Last/LastOrDefault operation without OrderBy and filter which may lead to unpredictable results.

How can this affect the Covenant?

from covenant.

cobbr avatar cobbr commented on July 17, 2024

Hey @Comanio00, that's expected. Maybe eventually it's something I should address.

from covenant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.