Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of http://github.com/WikiToLearn/WikiToLearn i…
…nto develop This will integrate WikiMedia's Math extension instead of WikiToLearn's branch.
- Loading branch information
Showing
10 changed files
with
110 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ export W2L_PRODUCTION=0 | |
./use-instance.sh | ||
sleep 1 | ||
./fix-hosts.sh | ||
./fix-hosts-tuttorotto.biz.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$(readlink "$0" || printf %s "$0")")" | ||
|
||
if [[ ! -f ./instance_config.conf ]] ; then | ||
echo "Missing ./instance_config.conf file" | ||
exit 1 | ||
fi | ||
|
||
. ./instance_config.conf | ||
|
||
if [[ "$W2L_INSTANCE_NAME" == "" ]] ; then | ||
echo "Missing key env variabile W2L_INSTANCE_NAME" | ||
exit 1 | ||
fi | ||
|
||
WEBSRV_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" ${W2L_INSTANCE_NAME}-websrv) | ||
OCG_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" ${W2L_INSTANCE_NAME}-ocg) | ||
|
||
for docker in ${W2L_INSTANCE_NAME}-websrv ${W2L_INSTANCE_NAME}-ocg ; do | ||
web_hosts=$(for subdom in $(find ../secrets/ -name *wikitolearn.php -exec basename {} \; | sed 's/wikitolearn.php//g'); do | ||
echo ${subdom}".tuttorotto.biz " | ||
done) | ||
echo $web_Whosts" to "$WEBSRV_IP | ||
{ | ||
docker exec $docker sed '/HOSTTUTTOROTTOBIZFIX1/d' /etc/hosts | docker exec -i $docker tee /tmp/tmp_hosts | ||
docker exec $docker cat /tmp/tmp_hosts | docker exec -i $docker tee /etc/hosts | ||
echo $WEBSRV_IP" HOSTTUTTOROTTOBIZFIX1 "$web_hosts | docker exec -i $docker tee -a /etc/hosts | ||
} &> /dev/null | ||
|
||
ocg_hosts=$(for ocg_host in ocg ocg.tuttorotto.biz ; do | ||
echo $ocg_host" " | ||
done) | ||
echo "Fixing "$ocg_hosts" to "$OCG_IP | ||
{ | ||
docker exec $docker sed '/HOSTTUTTOROTTOBIZFIX2/d' /etc/hosts | docker exec -i $docker tee /tmp/tmp_hosts | ||
docker exec $docker cat /tmp/tmp_hosts | docker exec -i $docker tee /etc/hosts | ||
echo $OCG_IP" HOSTTUTTOROTTOBIZFIX2 "$ocg_hosts | docker exec -i $docker tee -a /etc/hosts | ||
} &> /dev/null | ||
|
||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mw-ocg-latexer
added at
1e10a0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
export W2L_DOCKER_MYSQL="mysql:5.6" | ||
export W2L_DOCKER_MEMCACHED="memcached:1.4.24" | ||
export W2L_DOCKER_OCG="wikitolearn/ocg:0.8" | ||
export W2L_DOCKER_WEBSRV="wikitolearn/websrv:0.11" | ||
export W2L_DOCKER_HAPROXY="wikitolearn/haproxy:0.6" | ||
export W2L_DOCKER_PARSOID="wikitolearn/parsoid:0.1" | ||
export W2L_DOCKER_MATHOID="wikitolearn/mathoid:0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters