Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

pbls

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pbls

server version of pbl

latest
Source
npmnpm
Version
0.1.37
Version published
Maintainers
1
Created
Source

pbls

Server part of pbl deployment tool. You need to install it on the server.

Install

npm install --global pbls

To work with you need to init pbls with domain name.

pbls init --domain {your domain}
# example: pbls init --domain localhost

to clean outdated containers run (as a recommendation in cron)

pbls clean --days {X}

Work

pbls is considered to work with pbl tool, for now it run command run but not intended do that pbls supports args name, dockerFile and dir for now

  • dir is required and is a path of build folder
  • dockerFile name of Dockerfile, default Dockerfile
  • name name of running container, will be available at ${name}.${domain}, if not set equal to random, and will be provided to user
  • any additional arguments will be provided as is to docker build command, so you can pass --build-arg and other params

examples:

pbls run --name hello --dir ../../example --build-arg HELLO=WORLD
# or without name
pbls run --dir ../../example --build-arg HELLO=WORLD
# or in attached mode
pbls run --attached true --dir ../../example --build-arg HELLO=WORLD

Additional

You can execute any process as a web-socket server with terminal, as an example docker stats command. (to make it work you need to run once pbls init)

npm install --global pty64
pty64 --base64 -- docker stats | docker run -a STDIN -a STDOUT -i --rm -e VIRTUAL_HOST="stats.${YOUR_DOMAIN}" --name stats 'stdind' ./index.js --realtime
# or in detached mode
screen -S stats -dm /bin/bash -c 'pty64 --base64 -- docker stats | docker run -a STDIN -a STDOUT -i --rm -e VIRTUAL_HOST="stats.ui.revue.io" --name stats "stdind" ./index.js --realtime > /dev/null'

Clear:

docker rmi -f $(docker images --filter "label=pbl" -q)

Keywords

pbl

FAQs

Package last updated on 27 Dec 2016

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