Skip to content

microsoft/Build-PowerShell-DSC-for-Linux

Repository files navigation

Build Powershell DSC (Desired State Configuration) for Linux

The primary purpose of this project is to build universal Linux .rpm and .deb packages for distribution. The ULinux build of Powershell DSC for Linux is built upon the OMI, PAL and the ostc-openssl projects.

If local or development builds are desired, please follow the instructions in the README.md from the Powershell DSC for Linux project.

Configuration:

To prepare your build system you must read and follow the steps below from the Build-omi project:

DSC also requires curl and the curl development packages:

  • RHEL, CentOS :
sudo yum install curl libcurl-devel
  • SLES:
sudo zypper install curl libcurl-devel
  • Debian/Ubuntu: There are several back-ends for libcurl-dev. The 'apt-get' will list the candidates. Pick the appropriate one to install.
sudo apt-get install curl libcurl-dev 

Clone repository

To clone the repository to build PowerShell-DSC-for-Linux, issue the following command:

git clone --recursive git@github.com:Microsoft/Build-Powershell-DSC-for-Linux.git bld-dsc

After this, you need to make sure that you're on the master branch for each of the subprojects. To do this, issue the following commands:

cd bld-dsc
git checkout master
git submodule foreach git checkout master

You can also use an alias like git co-master if you followed Configuring git recommendations.

There will be three projects under bld-dsc:

dsc
omi
pal

Building

cd dsc/build
./configure --enable-ulinux
make
  • Packages are placed into bld-dsc/dsc/release.

Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct] (https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ] (https://opensource.microsoft.com/codeofconduct/faq/) or contact opencode@microsoft.com with any additional questions or comments.

About

Build projects required for DSC (Desired State Configuration)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published