Skip to content

Use WithContainerFiles instaed of WithBindMount in Adminer integration #644

Closed

Description

@Alirexaa

var assembly = Assembly.GetExecutingAssembly();
var stream = assembly.GetManifestResourceStream("CommunityToolkit.Aspire.Hosting.Adminer.login-servers.php") ?? throw new InvalidOperationException("Unable to load embedded resource 'login-servers.php'.");
var tempFile = Path.GetTempFileName();
using (var fileStream = new FileStream(tempFile, FileMode.Create, FileAccess.Write))
{
stream.CopyTo(fileStream);
}
// Refactor this to use WithContainerFiles API when Aspire 9.2 available
AdminerContainerBuilder.WithBindMount(tempFile, "/var/www/html/plugins-enabled/login-servers.php", isReadOnly: true);

Activity

  1. self-assigned this
    on Apr 19, 2025
  2. added theissue type on Apr 19, 2025
  3. aaronpowell commented on Apr 20, 2025

    @aaronpowell
    Member

    Do we want this in the milestone for 9.4?

  4. Alirexaa commented on Apr 20, 2025

    @Alirexaa
    MemberAuthor

    It can be a patch.

  5. added this to the 9.5 milestone on Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions