Skip to content

Add package to a testcontainer on its setup #1075

Answered by HofmeisterAn
vglinca asked this question in Q&A
Discussion options

You must be logged in to vote

This is not how Testcontainers and its modules work. The command API is used to specify the command that the container starts with. Even if it installs the packages, it would exit afterward since the database is not started. Build and use a custom image instead (Dockerfile).

_ = new MsSqlBuilder().WithImage("mssql:fts.2019").Build();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vglinca
Comment options

@HofmeisterAn
Comment options

Answer selected by vglinca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants