-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to configure in Docker? #4
Comments
Hmm, thanks for letting me know. I never use the Docker way myself, and I'm a bit of a Docker novice anyway, which probably explains why it may be a bit rough using it. I'm happy to accept pull requests if you have a better way of configuring it.
I guess that's a flaw in For the vanilla setup, it's easy: You just edit
You'll have to change this field in Currency.scala#L27 And then you'll have to (unfortunately) compile the whole thing. You need the scala builder (sbt) and node.js for this. In case you want to use Docker for that, here is a Dockerfile for compiling another project of mine that works with the same framework: https://github.com/nymanjens/quizmaster/blob/master/Dockerfile |
I did make some progress, but still failed in the end. I managed to get the conf directory mapped in the docker-compose. And I also made a change to the Database volume, so basically all the data would be in one place. However, I couldn't make basic changes to the And I haven't even tried to get to the compiling yet. I fear I will give up and look for another solution. In case somebody else is interested, this is the
I also copied a bunch of files over from the
The
|
Hi!
This is probably a bit of a confusing error message and I added a TODO to make this more clear (or make it easier to fix). The problem is that your MySQL database needs to have a user that you can then tie to an account in the config file. So you first need to get the server running, add users for you and your wife and only then link the accounts to users. You can easily add users via the web UI.
Thanks, I'll probably update the docker-compose in the project with yours.
Hmm, so the issue is that the demo config files are not checked in. This can be fixed. It seems to be clear that the whole Docker flow is pretty much untested. It makes me think it would be better to only provide the "Installation from release" option, which I think should work a lot better. |
But I am certain, that I have defined the users in the system. I first only had a user for myself, so it complained about my wife. But then I added her user too, and it then still came up with the error. I also tried it with all lowercase (matth) and with a first capital letter (Matth). This was as the user record was shown in the database view under loginName. Although I don't have that much experience with Docker, I start to prefer solutions that offer a docker container. It's usually so much easier to install, and simpler. |
I'm currently evaluating the tool. To quickly test it, I've used the docker-compose.yml from the Readme of this repo and ran the commands provided by the Readme. I edited the file and used the following command to upload the file back into the container filesystem: After a restart, everything seemed to work. I just wanted to let you know that it seems to work. In case I stick with the tool, I might actually write a Helm Chart for it to host it in a Kubernetes Cluster. That's where I would run it myself as well. |
Been quite a few years. Any chance of a revisit for an official Docker install method? And was the ability to change currency from euro to dollar ever made easier? Thank you! |
I'm happy to receive PRs for a better Docker setup/instructions and the ability to change the default currency without having to recompile the code. It is unlikely that I will find the time and motivation to do so. |
I managed to get the docker compose up and running and I can login. I first failed to get it running on my Raspberry Pi 4, and I also failed to point the DB to an existing MySql container. But when I eventually tried your vanilla setup, it worked at first try.
One other little issue I found is that I couldn't set the APPLICATION_SECRET with the normal user, and start the docker with
sudo docker-compose up -d
. But that's not a real issue.But now I am trying to configure the app and setup some categories and accounts, but I can't find the conf directory. How can I map that volume to a local directory?
Also, how can I change the EUR sign into a $?
The text was updated successfully, but these errors were encountered: