Skip to content
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

Adding fxdependent PS package tests #7830

Merged
merged 3 commits into from
Oct 18, 2018

Conversation

anmenaga
Copy link
Contributor

PR Summary

Fix #7750

fxdependent package = .NET framework dependent PowerShell package.
It is is a small-footprint (~22 MB) PowerShell package that can be run on a machine where dotnet runtime is installed separately. Requirement for having such package is driven by .NET team.

This PR adds release-time tests for fxdependent package for all currently supported Linux configurations.

PR Checklist


# Download and run tests
RUN $TESTDOWNLOADCOMMAND
RUN dotnet /opt/microsoft/powershell/pwsh.dll -c "Import-Module /PowerShell/build.psm1;\$dir='/usr/local/share/powershell/Modules';\$null=New-Item -Type Directory -Path \$dir -ErrorAction SilentlyContinue;Restore-PSPester -Destination \$dir;exit (Invoke-Pester $TESTLIST -PassThru).FailedCount"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing newline at end of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@@ -0,0 +1,32 @@
FROM centos:7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should base this off the 2.1-runtime and 2.1-sdk image flavors from https://hub.docker.com/r/microsoft/dotnet/tags/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this for ubuntu18.04 and debian.9;
Unfortunately they don't have any other images.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to test all these platforms?

apt-transport-https \
locales \
git \
wget
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't add wget, use the docker ADD commande

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated.


# Install dependencies
RUN yum install -y \
curl \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add curl, see comments about wget

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated.


# Install dotnet-runtime
RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
RUN yum install -y \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wont be needed if using the 2.1-sdk or 2.1-runtime image is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated base image for ubuntu18.04 and debian.9;
Unfortunately .NET doesn't have any other images.

git \
wget

# Install dotnet-runtime
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't find .NET image for debian.8

@anmenaga
Copy link
Contributor Author

@TravisEz13 @adityapatwardhan please take a look again.

@adityapatwardhan
Copy link
Member

@TravisEz13 Please have another look.

@adityapatwardhan
Copy link
Member

@anmenaga Can you have a look at the CodeFactor issues?

@adityapatwardhan
Copy link
Member

@TravisEz13 @anmenaga There are issues reported by CodeFactor for Docker files. Should they be resolved?

@TravisEz13
Copy link
Member

As far as I can tell, All the docker issues from CodeFactor are false positives.

@adityapatwardhan adityapatwardhan merged commit d098e6f into PowerShell:master Oct 18, 2018
@anmenaga anmenaga deleted the fxdependentPackageTests branch October 31, 2018 21:15
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for framework dependent package
3 participants