Skip to content

NopeNix/RestPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Workflow Status GitHub issues Docker Stars GitHub Repo stars

RestPS

General use RestPS PowerShell Container for x64 platforms. RestPS is a awesome super easy to use PowerShell Module. I made a container out of it.

RestPS is not build by me please check out the original Repo on Github: https://github.com/jpsider/RestPS don't forget to leave a Star


Getting Started

RestPS Module

RestPS is easy and learned within 2 minutes but you have to check it out first.

Quick test

You can start the container with just Port 80 exposed and try to access either /endpoint/status (which will return a 1) or /proc (which will return all running processes in the container, long ugly JSON List) to get your first response

Running on your own Endpoints JSON and implementing your own Script

docker-compose.yml

version: "3"

services:
  restps:
    image: nopenix/restps:latest
    restart: unless-stopped
    ports:
      - 80:80
    volumes:
      - /path/to/your/endpoints.json:/app/endpoints.json # mounting endpoints file
      #- /path/to/a/powershell-script.ps1:/app/script.ps1 # do not forget to mount your Scripts!
    environment: 
      port: 80
      path_to_endpoints_json_file: /app/endpoints.json # using the in the volumes block previous mounted endpoints file

Env Variables

Variable Effect
port Specify the Port RestPS should listen on
path_to_endpoints_json_file Path to the JSON Endpoints definition file

About

RestPS PowerShell Container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published