Skip to content

Commit bb6382e

Browse files
committed
Get the image tag from the package version
1 parent cc317b6 commit bb6382e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docker/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
docker build -t streamz:0.5.2 .
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
cd "${DIR}/.."
5+
export VERSION=$(python "${DIR}/../setup.py" --version)
6+
docker build -t "streamz:${VERSION}" .

docker/run.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
docker run -p 8888:8888 streamz:0.5.2
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
cd "${DIR}/.."
5+
export VERSION=$(python "${DIR}/../setup.py" --version)
6+
docker run --rm -p 8888:8888 "streamz:${VERSION}"

0 commit comments

Comments
 (0)