Sign inSign up

binpash/pash

By binpash

•Updated over 3 years ago

PaSh Official Docker Image

Image
0

411

binpash/pash repository overview

⁠PaSh Docker Support

Docker files for PaSh⁠ published on Dockerhub:

⁠Run locally

The following will pull and launch the latest image (tag: pash:latest) using the name pash-play

docker pull binpash/pash
docker run --name pash-play -it binpash/pash:latest

To restart after you exit, run docker start -i pash-play

⁠From PaSh's Official Dockerfiles

git clone [email protected]:binpash/pash.git
cd pash/scripts/docker
docker build -t "pash:latest" .

⁠As a Dockerfile

To build any of these containers and run it locally:

# URL points to ubuntu, pick any of the "raw" URLs above
wget https://raw.githubusercontent.com/binpash/pash/main/scripts/docker/ubuntu/Dockerfile
docker build -t "pash:stable" . && docker run -it "pash:stable"

⁠(optional) Add pash-docker as an alias to your shell

You can add pash command to your shell init file (e.g..bashrc) to launch scripts in the Docker environment.

pash () {
  docker start -i pash-play
    --interactive \
    --tty \
    --rm \
    --volume $PWD:/pwd \
    --workdir /pwd \
    pash-play \
    "$@"
}

and in your terminal:

source ~/.bashrc
pash --version
pash -w=2 hello.sh

This will not work if the scripts depend on environment variables on the environment hosting the Docker container.

⁠Preparing Docker Images
  • build the image: docker build -t "binpash/pash:$distro-$version"
  • push the image docker push binpash/pash:$distro-$version

Tag summary

Content type

Image

Digest

sha256:7649dc915…

Size

393.7 MB

Last updated

over 3 years ago

docker pull binpash/pash