File: docker-shell

package info (click to toggle)
libapache2-authcookie-perl 3.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: perl: 1,560; sh: 101; makefile: 28
file content (14 lines) | stat: -rwxr-xr-x 214 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

set -eo pipefail

DOCKER_IMAGE=$1

if [ -z "$DOCKER_IMAGE" ]; then
    echo "Usage: $0 docker-image-tag"
    exit 1
fi

cd $(dirname $0)/..

docker run --rm -v $PWD:/app -it $DOCKER_IMAGE bash