Skip to content

Commit

Permalink
add update_local.bash for easier local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jun 9, 2016
1 parent 7024843 commit ca5e51a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions update.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash -e

# pull the new image
docker pull boomzillawtf/tdwtf
if [[ "`basename "$0"`" == "update_local.bash" ]]; then
# build the local image
docker build -t boomzillawtf/tdwtf .
else
# pull the new image
docker pull boomzillawtf/tdwtf
fi

# rename the old image
docker rename wtdwtf-nodebb wtdwtf-nodebb-temp
Expand Down
1 change: 1 addition & 0 deletions update_local.bash

0 comments on commit ca5e51a

Please sign in to comment.