New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zazuko/docker-script-trigger

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zazuko/docker-script-trigger

Trigger a script in a Docker container

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-0.98%
Maintainers
5
Weekly downloads
 
Created
Source

Docker script trigger

Quick start

In the Docker image there is already a script /scripts/hello.sh.

To try this image, you can follow those instructions:

docker run --rm -it -p3000:3000 ghcr.io/zazuko/docker-script-trigger:latest
curl -s http://localhost:3000/run/hello | jq

and you should get the following output:

{
  "success": true,
  "stdout": "Hello stdout!\n",
  "stderr": "Hello stderr!\n"
}

Configuration

Configuration can be done using following environment variables:

  • SERVER_PORT: port the server is exposed (default: 3000)
  • SERVER_HOST: host the server is listening to (default: ::)
  • SCRIPTS_PATH: default path where scripts are stored (default: /scripts)

How to use this image?

This image is based on the node:14-alpine image.

You may want to add more scripts and more tools in this Docker image. You can simply build a new Docker image that uses this image as a base.

For example:

FROM ghcr.io/zazuko/docker-script-trigger:latest

# Do your stuff here (copy script files into /scripts, install packages, …)

Please replace the latest tag with a specific version, so that it doesn't break stuff if the image is getting updated.

Build it, and use it!

FAQs

Package last updated on 05 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc