-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,8 +338,6 @@ pub struct SchedulerConfig { | |
#[config(rename_all = "snake_case", env_prefix = "SERVER_SMTP_")] | ||
pub struct SmtpConfig { | ||
pub server: String, | ||
#[setting(default = 587)] | ||
pub port: u16, | ||
pub user: String, | ||
pub password: String, | ||
#[setting(default = "Ryot <[email protected]>")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
profile = "default" | ||
channel = "1.77.2" | ||
channel = "1.80.0" |
c453dcb
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.
Hi @vnghia! I know this is out of the blue but could you help me perhaps? I have not been able to get builds working because of some dependency missing but now that I have added it to my dockerfile, it still does not work. Funny thing is, it works locally but not on github actions. Probably because of
platform=amd64
.I would be grateful if you could take a look.
c453dcb
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.
Also relevant commit: 15ea505
c453dcb
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.
I will take a look at it.
Edit: I see why. Will try to send you a PR soon.
c453dcb
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.
@IgnisDa, is there any reason why you want to use
openssl
instead ofrustls
?c453dcb
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.
The fix will be something like this: https://github.com/cross-rs/cross/wiki/FAQ#procedural-macros. The reason is because we are cross compiling, the
libssl-dev
you are installing onarm64
is stillamd64
.c453dcb
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.
@IgnisDa not sure where to send the PR so essentially, the fix is jsut
On
amd64
, TARGETPLATFORM will beamd64
and wont have any effect. Onarm64
, it will install bothlibssl-dev:amd64
andlibssl-dev:arm64
c453dcb
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.
I was able to solve it by removing all the target platform stuff. The reason those were added were because ryot needed to suport sqlite. But since that is no longer a requirement, I got rid of it. Compile times went down by 50%.
One thing I still need help with is testing the amd64 version. I don't own a system of that architecture.
c453dcb
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.
The reason I switched to openssl is because some dependencies (eg:
radarr-api-rs
) do not support feature flags that will allow me to enable the rusttls version. Also the reason I used rusttls back in the day was because the final docker image stage wasFROM scratch
. Now ryot uses aFROM node:slim
so there's no openssl vendoring issues.c453dcb
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.
amd64 is x86_64 so I think you already have it. The problematic one is arm64. I will test this commit for you.
c453dcb
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.
@IgnisDa can you add a branch to this commit so I can clone it
c453dcb
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.
@vnghia You can just go ahead with the latest commit of the main branch. I squashed all changes into one commit and force pushed it.
c453dcb
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.
Also since builds for both platforms succeeded, you can just download the latest image from ghcr and test it on arm64 directly.