Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge branch 'master' into ZNTA-1101-project-glossary
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Sep 19, 2016
2 parents 6dbfe95 + fda03cf commit 09d2df2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/rundev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
# change to top of the git working directory
cd $DIR/../
ZANATA_WAR=$(echo $PWD/zanata-war/target/zanata-*.war)

if [ -f "$ZANATA_WAR" ]
then
chcon -Rt svirt_sandbox_file_t "$ZANATA_WAR"
else
echo "===== NO war file found. Please build Zanata war first ====="
exit 1
fi

# volume mapping for zanata server files
ZANATA_DIR=$HOME/docker-volumes/zanata
# create the data directory and set permissions (SELinux)
mkdir -p $ZANATA_DIR && chcon -Rt svirt_sandbox_file_t "$ZANATA_DIR"
# make zanata directory and standalone.xml file accessible to docker containers (SELinux)
chcon -Rt svirt_sandbox_file_t "$ZANATA_WAR"

# build the docker dev image
docker build -t zanata/server-dev docker/
Expand Down

0 comments on commit 09d2df2

Please sign in to comment.