Build projects required for DSC (Desired State Configuration)
Перейти к файлу
microsoft-github-policy-service[bot] 4941c8ee7b
Microsoft mandatory file
2023-06-02 21:23:37 +00:00
dsc@3b2dfedfc8 Update submodules and version for daily build (v1.1.1-909) 2018-11-20 17:00:20 -08:00
omi@bfbc4ac773 Update submodules and version for daily build (v1.1.1-671) 2018-01-31 10:30:38 -08:00
pal@71f6044077 Update submodules and version for daily build (v1.1.1-919) 2018-11-30 17:00:21 -08:00
.gitmodules Update repository groups, default branch is now 'master' 2016-01-19 15:13:49 -08:00
LICENSE Add license file to repository, as supplied by Product Management 2016-04-27 15:54:50 -07:00
README.md Update README.md to include build instructions. 2017-03-02 00:08:28 +00:00
SECURITY.md Microsoft mandatory file 2023-06-02 21:23:37 +00:00
dsc.version Update dsc.version for py3 support 2021-04-19 01:39:54 +05:30
omi.version Update submodules and version for daily build (v1.1.1-926) 2018-12-07 17:00:20 -08:00
updateVersion.sh sed -r isn't portable to AIX; use perl instead (keep script consistent) 2015-12-16 09:23:33 -08:00

README.md

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.