First thing Jonathan, great work on this tool. It looks like it will be very helpful!
I am running into an issue using it in my environment, however.
I am trying to use solver
on a Mac while I am developing a challenge and I have run into a few issues when running it inside a container.
The Katacoda documents here: https://www.katacoda.community/challenges/challenges-solver.html
recommend that you use it by setting alias solver="docker run --rm ghcr.io/javajon/solver:0.4.1
However, running a command like this would fail solver create --archetype=linux --destination=. --force
I figured that this was because it was running inside the container, so I removed the alias and replaced it with a bash function that looks like this:
solver ()
{
docker run --rm -v `pwd`:/output ghcr.io/javajon/solver:0.4.1 "$@"
}
This then allowed me to run solver create --archetype=linux --destination=/output --force
without an issue.
However, when I got done with the challenge and then wanted to encrypt the solutions, I ran into another problem. I see no way to tell solver
where to find the solutions, which means that I can't point it at the mounted directory.
Running solver solutions -e
, claims to have done something (which surprises me a bit), but once again this is likely happening inside the container filesystem.
It seems like the tool really needs an option to specific the working directory, for most, if not all commands. This should allow users on Windows and Mac to use it reasonably easily, and would definitely help me out.
Let me know if there is anymore information or testing that I can do, which would be helpful!