-
Notifications
You must be signed in to change notification settings - Fork 17
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
Added support for ARM #233
Conversation
# Conflicts: # Tranga/Server.cs
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.6.1 to 6.7.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v6.6.1...v6.7.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Dockerfile-base
Outdated
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.
moved to main Dockerfile
BrowserFetcher browserFetcher = new BrowserFetcher(); | ||
foreach(string rev in browserFetcher.LocalRevisions().Where(rev => rev != ChromiumVersion)) | ||
browserFetcher.Remove(rev); | ||
if (!browserFetcher.LocalRevisions().Contains(ChromiumVersion)) | ||
{ | ||
Log("Downloading headless browser"); | ||
DateTime last = DateTime.Now.Subtract(TimeSpan.FromSeconds(5)); | ||
browserFetcher.DownloadProgressChanged += (_, args) => | ||
{ | ||
double currentBytes = Convert.ToDouble(args.BytesReceived) / Convert.ToDouble(args.TotalBytesToReceive); | ||
if (args.TotalBytesToReceive == args.BytesReceived) | ||
Log("Browser downloaded."); | ||
else if (DateTime.Now > last.AddSeconds(1)) | ||
{ | ||
Log($"Browser download progress: {currentBytes:P2}"); | ||
last = DateTime.Now; | ||
} | ||
|
||
}; | ||
if (!browserFetcher.CanDownloadAsync(ChromiumVersion).Result) | ||
{ | ||
Log($"Can't download browser version {ChromiumVersion}"); | ||
throw new Exception(); | ||
} | ||
await browserFetcher.DownloadAsync(ChromiumVersion); | ||
} | ||
|
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.
chrome is a part of base image now
because Puppeteer cant download arm version of chrome
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.
Could you rename method to "StartBrowser" for readabilitys sake?
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.
renamed
…ocker/build-push-action-6.7.0 Bump docker/build-push-action from 6.6.1 to 6.7.0
Cuttingedge merge candidate
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.
alright looks good
Gonna merge to cuttingedge first, see if changes work |
arm image is build only in master branch |
Yeah sorry, worded that wrong, gonna test locally with cuttingedge-branch, then merge into master |
anyway now enabling arm images in other branches is only changing |
ARM64 Support #6
related to C9Glax/tranga-website#116
https://hub.docker.com/layers/vonproteus/glax-tranga-api/latest/images/sha256-a1cb9859b33d83c271015c70be4a7f214914b5c770e276a6cb1b77ad7a3734fe?context=explore