Running fluentmigrator from linux, is mono still required? .net core?
See original GitHub issueDescribe the question Is using ‘mono’ still the only way to get fluentmigrator running in Linux? I have a use case where I need to run it in a linux container from a ci/cd pipeline. I see mention of supporting .net core in past github issues, can the project be built and run using .net core without mono now?
These steps in a Dockerfile seem to work to get the Migrate.exe to run, I’m just wondering if there is a better way to do this.
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" > /etc/apt/sources.list.d/mono-official.list \
&& apt-get update \
&& apt-get install -y mono-runtime binutils curl mono-devel nuget unzip \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN mkdir /tmp/FluentMigrator.Tools \
&& nuget install FluentMigrator.Tools -Version 3.2.9 -OutputDirectory /tmp/FluentMigrator.Tools/ \
&& mv /tmp/FluentMigrator.Tools/FluentMigrator.Tools.3.2.9/tools /usr/local/bin/FluentMigrator.Tools \
&& rm -rf /tmp/FluentMigrator.Tools`
Documentation Pages You’ve Read So Far https://fluentmigrator.github.io/articles/guides/contribution.html#linux-macos https://github.com/fluentmigrator/fluentmigrator/issues/712 https://github.com/fluentmigrator/fluentmigrator/issues/1039
Expected benefit The ci/cd system I must use supports only linux containers for build/deploy operations, I am looking for the most optimal way to build and run fluentmigrator in this context.
Information (please complete the following information):
- Database target is Azure SQL
- Linux containers to be based on ubuntu
Additional context n/a
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:19 (6 by maintainers)
Top GitHub Comments
@lillo42 The fix for this issue will go out today in v3.2.15
At home I used Linux Ubuntu 20.04 and I don’t have a problem to run FluentMigrator in linux, but to run FluentMigrator I had develop my own tool(where a can just run without any parameters and this tool have a reference to my projects who have my migrations) and it`s run wells.
I will take a look if dotnet tools work fine in linux