-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dockerfile Updates for Emu #2780
Conversation
Please retry analysis of this Pull-Request directly on SonarCloud. |
1 similar comment
Please retry analysis of this Pull-Request directly on SonarCloud. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If conf/local.yml is used, this won't install the emu dependencies/download payloads. Maybe update it to create local.yml if it doesn't exist (similar to how it did previously), and then when checking if emu is enabled, it only has to check local.yml and not both.
Also when I ran this with docker-compose, when downloading the emu payloads I got the error "No such file or directory." The working directory for that command might be thrown off. Did you run into this?
Kudos, SonarCloud Quality Gate passed! |
@clenk That makes sense. If we are using the The script has been updated to fix the directory issue as well, that was just a matter of updating the |
Kudos, SonarCloud Quality Gate passed! |
Please retry analysis of this Pull-Request directly on SonarCloud. |
Kudos, SonarCloud Quality Gate passed! |
Description
Users were running into
InvalidToken
cryptography errors when running the platform with Docker. This was due to the following scenario:local.yml
and its encryption keys used to load previous saves of the platform, writing a copy ofdefault.yml
intolocal.yml
. The correct encryption keys from the originallocal.yml
were overwritten, and the platform was unable to load previously saved data, ending execution with anInvalidToken
error.The Dockerfile has been updated to account for an existing
local.yml
file, and will make the necessary edits to that file as an opposed to overwriting it entirely. If alocal.yml
file is missing, a new one will be generated fromdefault.yml
, but with randomly set encryption/passwords (similarly to how the server normally creates that file).Additionally, the Dockerfile has been updated to conditionally run necessary Emu installations if the Emu plugin is enabled.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Used this branch to rerun steps that produced error on
master
:docker build . --build-arg WIN_BUILD=true -t caldera:latest
).docker run -p 8888:8888 caldera:latest
).The server was verified to start successfully, with the Emu plugin loaded.
Checklist: