Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ba97f4d
Showing
351 changed files
with
19,515 additions
and
0 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
*.pyc | |||
*.db | |||
*.log | |||
*~ | |||
*python-virtual* |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,49 @@ | |||
all: run/python-virtual run/python-virtual/bin/post_receive.py run/python-virtual/bin/git_serve.py run/python-virtual/bin/shell_serve.py setuid | |||
|
|||
run/python-virtual: src/server/master/management_database/management_database/* src/server/master/master_api/master_api/* src/server/shared/djangy_server_shared/* | |||
virtualenv run/python-virtual | |||
bash -c 'source run/python-virtual/bin/activate; easy_install Django==1.2.1 Mako==0.3.4 South==0.7.2 django-sentry==1.0.9' | |||
bash -c 'source run/python-virtual/bin/activate; easy_install src/server/master/management_database src/server/master/master_api src/server/shared' | |||
|
|||
run/python-virtual/bin/post_receive.py: run/python-virtual src/server/master/master_manager/post_receive.py | |||
cp src/server/master/master_manager/post_receive.py run/python-virtual/bin/post_receive.py | |||
chmod +x run/python-virtual/bin/post_receive.py | |||
|
|||
run/python-virtual/bin/git_serve.py: run/python-virtual src/server/master/master_manager/git_serve.py | |||
cp src/server/master/master_manager/git_serve.py run/python-virtual/bin/git_serve.py | |||
chmod +x run/python-virtual/bin/git_serve.py | |||
|
|||
run/python-virtual/bin/shell_serve.py: run/python-virtual src/server/master/master_manager/shell_serve.py | |||
cp src/server/master/master_manager/shell_serve.py run/python-virtual/bin/shell_serve.py | |||
chmod +x run/python-virtual/bin/shell_serve.py | |||
|
|||
setuid: run/master_manager/setuid run/proxycache_manager/setuid run/worker_manager/setuid | |||
|
|||
run/master_manager/setuid: src/server/master/master_manager/setuid/* | |||
rm -rf run/master_manager | |||
mkdir -p run/master_manager/setuid | |||
cd src/server/master/master_manager/setuid; make clean; make | |||
cp -a src/server/master/master_manager/setuid/run_* run/master_manager/setuid | |||
rm run/master_manager/setuid/*.c | |||
|
|||
run/proxycache_manager/setuid: src/server/proxycache/proxycache_manager/setuid/* | |||
rm -rf run/proxycache_manager | |||
mkdir -p run/proxycache_manager/setuid | |||
cd src/server/proxycache/proxycache_manager/setuid; make clean; make | |||
cp -a src/server/proxycache/proxycache_manager/setuid/run_* run/proxycache_manager/setuid | |||
rm run/proxycache_manager/setuid/*.c | |||
|
|||
run/worker_manager/setuid: src/server/worker/worker_manager/setuid/* | |||
rm -rf run/worker_manager | |||
mkdir -p run/worker_manager/setuid | |||
cd src/server/worker/worker_manager/setuid; make clean; make | |||
cp -a src/server/worker/worker_manager/setuid/run_* run/worker_manager/setuid | |||
rm run/worker_manager/setuid/*.c | |||
|
|||
clean: | |||
rm -rf run | |||
rm -rf src/server/master/management_database/temp src/server/master/management_database/build src/server/master/management_database/management_database.egg-info | |||
rm -rf src/server/master/master_api/temp src/server/master/master_api/build src/server/master/master_api/master_api.egg-info | |||
rm -rf src/server/shared/temp src/server/shared/build src/server/shared/djangy_server_shared.egg-info | |||
-find * -name '*.pyc' | xargs rm | |||
-find * -name '*~' | xargs rm |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,59 @@ | |||
djangy.git layout | |||
================= | |||
|
|||
docs@ -- symlink to user docs in web_ui/ | |||
install/ -- used to install/deploy djangy to a host | |||
conf/ -- configuration files installed on a host | |||
apache/ | |||
git_hooks/ | |||
post_receive.py@ | |||
gitosis.conf | |||
nginx.conf@ | |||
rc.local | |||
ssh_keys/ | |||
ssl_keys/ | |||
misc/ | |||
src/ | |||
client/ -- code run by users on their own machine | |||
server/ | |||
master/ -- code run on the master node | |||
management_database/ -- used by master_manager, web_ui, web_api | |||
master_api/ -- internal API used by web_api and web_ui | |||
master_manager/ -- privileged operations of master_api | |||
post_receive.py -- goes in git_hooks | |||
web_api/ -- django project for API called by client | |||
web_ui/ -- django project for website | |||
proxycache/ -- code run on the frontend nginx proxy/cache nodes | |||
nginx.conf | |||
proxycache_manager/ | |||
shared/ | |||
lib/ | |||
worker/ -- code run on the application worker nodes | |||
worker_manager/ | |||
test/ -- test cases | |||
|
|||
generated files | |||
=============== | |||
|
|||
run/ -- runtime environment; generated, not checked into repository | |||
python-virtual/ -- used by all server components | |||
master_manager/sbin/ | |||
proxycache_manager/sbin/ | |||
worker_manager/sbin/ | |||
|
|||
/srv layout | |||
=========== | |||
|
|||
/srv/ | |||
bundles/ 0711 root root | |||
<bundle_name>/ 0550 <web_uid> bundles | |||
djangy/ 0510 root djangy | |||
gitosis/ 0700 gitosis gitosis | |||
local_manager/ 0700 root root | |||
logs/ 0710 root www-data | |||
<bundle_name>/ 0710 root www-data | |||
|
|||
Notes: | |||
* djangy group = root, gitosis, www-data | |||
* <bundle_name> = <application_name>-<bundle_version> | |||
* not 100% sure about all the permissions (e.g., logs) |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
Note: some subdirectories need to be populated with SSH and SSL keys before | |||
you can install. Please see the README files in the subdirectories. |
Oops, something went wrong.