Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stfbauer/docker-spfx-pnp-samples
Docker Image to try all SPFx Pnp Sample
https://github.com/stfbauer/docker-spfx-pnp-samples
docker docker-image sharepoint sharepoint-framework sharepoint-online spfx
Last synced: 16 days ago
JSON representation
Docker Image to try all SPFx Pnp Sample
- Host: GitHub
- URL: https://github.com/stfbauer/docker-spfx-pnp-samples
- Owner: StfBauer
- Created: 2017-03-17T13:25:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T18:32:57.000Z (almost 8 years ago)
- Last Synced: 2024-11-20T17:44:32.590Z (3 months ago)
- Topics: docker, docker-image, sharepoint, sharepoint-framework, sharepoint-online, spfx
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SharePoint Framework Office PNP Docker file
Docker images recipe for running [SharePoint Framework Pattern and Practices samples](https://github.com/SharePoint/sp-dev-fx-webparts).
## Usage
In the HOSTS file on your host add:
```
127.0.0.1 spfx
```
### Clone this repository
```
git clone https://github.com/StfBauer/docker-spfx-pnp-samples.git
```### Create docker image for SPFX Pattern and Practices sample
Create docker image specific to one of the sample listed on [SPFX PnP Samples](https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples)
For example create container for jquery-cdn sample pass in the following command:
```
docker build -t spfx-samples:jquery-cdn . --build-arg samplename="jquery-cdn"
```
Pass in folder name to image name and tag 'spfx-samples:'.
Set 'samplename' build argument to same folder name.
### To run container```
docker run -h spfx --name spfx-jquery-cdn -it -p 5432:5432 -p 4321:4321 -p 35729:35729 spfx-samples:jquery-cdn
```Set ```--name``` argument to your desired name. In this case ```spfx-jquery-cdn``` was used.
To exit container press ```CTRL+C``` this will exit the container.
### To restart container again:```
docker start spfx-jquery-cdn
```### To access running container via shell
```
docker exec -it spfx-jquery-cdn /bin/bash
```## Additional information
Additional information can be found in my blog post "[How to run SharePoint Framework Pattern and Practices Samples through Docker](http://www.n8d.at/blog/how-to-run-sharepoint-pattern-and-practices-samples-through-docker/)"## Known issues
There are some know issues on Windows documented on [Dockers Github page](https://github.com/docker/kitematic/wiki/Common-Issues-and-Fixes#windows-10).## Limitations
Windows 10 Anniversary Update and Windows Server 2016 have native support for containers. At this moment Windows supports only containers built on Windows Server Core or Nano Server and you won't be able to run this container natively on Windows. Instead you should use Docker for Windows or Docker Toolbox.