Skip to content

Commit 5b9c1b8

Browse files
committed
Tweaked build scripts
1 parent eea42b3 commit 5b9c1b8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

build

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

3-
rails-app-base/build
4-
redis-commander/build
3+
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
4+
"${SCRIPT_DIR}/rails-app-base/build"
5+
"${SCRIPT_DIR}/redis-commander/build"

rails-app-base/build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3-
docker build --tag="marclennox/rails-app-base" --rm=true "$( cd "$( dirname "$0" )" && pwd )"
3+
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
4+
cd "${SCRIPT_DIR}" && docker build --tag="marclennox/rails-app-base" --rm=true .

redis-commander/build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
22

3-
docker build --tag="marclennox/redis-commander" --rm=true "$( cd "$( dirname "$0" )" && pwd )"
3+
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
4+
cd "${SCRIPT_DIR}" && docker build --tag="marclennox/redis-commander" --rm=true .

0 commit comments

Comments
 (0)