This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from jpogran/puppet-pdk
Puppet PDK Docker Container file
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ruby:2 | ||
|
||
RUN gem install ruby-debug-ide | ||
RUN gem install debase | ||
|
||
ADD https://apt.puppetlabs.com/puppet6-release-xenial.deb /puppet6-release-xenial.deb | ||
RUN dpkg -i /puppet6-release-xenial.deb | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install git procps pdk | ||
|
||
# Clean up | ||
RUN apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Puppet Development Kit - Dockerfile", | ||
"dockerFile": "Dockerfile", | ||
|
||
// Uncomment the next line if you want to publish any ports. | ||
// "appPort": [], | ||
|
||
// Uncomment the next line if you want to add in default container specific settings.json values | ||
// "settings": { "workbench.colorTheme": "Quiet Light" }, | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "pdk --version", | ||
|
||
"extensions": [ | ||
"jpogran.puppet-vscode", | ||
"rebornix.Ruby" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
README.md | ||
test-project | ||
.vscode | ||
.npmignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Puppet Development Kit Docker Container | ||
|
||
## Summary | ||
|
||
*Develop Puppet based applications. Includes everything you need to get up and running.* | ||
|
||
| Metadata | Value | | ||
|----------|-------| | ||
| *Contributors* | Puppet | | ||
| *Definition type* | Dockerfile | | ||
| *Languages, platforms* | Puppet | | ||
|
||
## Description | ||
|
||
Develop Puppet manifests, modules, and code using VS Code without installing any extra tools: `puppet-development-in-a-box`! | ||
|
||
## Using this definition with an existing folder | ||
|
||
Just follow these steps: | ||
|
||
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. | ||
|
||
2. To use VS Code's copy of this definition: | ||
1. Start VS Code and open your project folder. | ||
2. Press <kbd>F1</kbd> select and **Remote-Containers: Create Container Configuration File...** from the command palette. | ||
3. Select the `Puppet` definition. | ||
|
||
3. To use latest-and-greatest copy of this definition from the repository: | ||
1. Clone this repository. | ||
2. Copy the contents of this folder in the cloned repository to the root of your project folder. | ||
3. Start VS Code and open your project folder. | ||
|
||
4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. | ||
|
||
5. Finally, press <kbd>F1</kbd> and run **Remote-Containers: Reopen Folder in Container** to start using the definition. | ||
|
||
## License | ||
|
||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). |