2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-02-15 19:22:01 +00:00
|
|
|
require_once("docutil.php");
|
2004-07-13 20:59:13 +00:00
|
|
|
page_head("Project creation cookbook");
|
2004-02-15 19:22:01 +00:00
|
|
|
echo "
|
|
|
|
<h2>Make skeletal project</h2>
|
|
|
|
<ul>
|
2005-11-02 22:06:54 +00:00
|
|
|
<li> Install and configure all <a href=build.php>prerequisite software</a>
|
|
|
|
(follow the directions carefully).
|
2004-06-11 00:04:51 +00:00
|
|
|
Make sure MySQL is configured and running.
|
2006-09-13 03:39:30 +00:00
|
|
|
<li> Get the BOINC
|
2005-11-02 22:06:54 +00:00
|
|
|
<li> Compile the BOINC software, say into HOME/boinc.
|
2004-11-29 22:26:34 +00:00
|
|
|
<li> Run HOME/boinc/tools/<a href=make_project.php>make_project</a>
|
|
|
|
<li> Append the contents of projects/PROJECT/PROJECT.httpd.conf
|
|
|
|
to httpd.conf and restart Apache.
|
2004-12-01 05:03:53 +00:00
|
|
|
<li> Use 'crontab' to insert a cron job to run the project's
|
|
|
|
periodic tasks, e.g.
|
2004-11-29 22:26:34 +00:00
|
|
|
<br> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * HOME/projects/PROJECT/bin/start --cron
|
|
|
|
<br> (if cron cannot run 'start', try using a helper script
|
|
|
|
to set PATH and PYTHONPATH)
|
|
|
|
|
|
|
|
<li> Copy project.xml from HOME/boinc/tools to HOME/projects/PROJECT,
|
2005-11-02 22:06:54 +00:00
|
|
|
edit it to reflect your applications and platforms,
|
2004-11-29 22:26:34 +00:00
|
|
|
and run <a href=tool_xadd.php>bin/xadd</a>.
|
2004-06-11 00:04:51 +00:00
|
|
|
<li> Edit html/project/project.inc, changing the
|
2004-02-19 16:43:28 +00:00
|
|
|
master URL and copyright holder.
|
2004-12-01 05:03:53 +00:00
|
|
|
<li> Protect the html/ops directory
|
|
|
|
(e.g. by putting .htaccess and .htpasswd files there).
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the project web site is up.
|
2004-06-11 00:04:51 +00:00
|
|
|
The database 'platforms' table has several rows.
|
|
|
|
<p>
|
|
|
|
Troubleshooting:
|
|
|
|
check the Apache access and error logs.
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
<h2>Create an application version</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Create a BOINC application executable
|
|
|
|
(if you're in a hurry, use the test application).
|
2004-03-15 20:40:59 +00:00
|
|
|
<li> Copy the executable to HOME/projects/PROJECTNAME/apps/APPNAME
|
2005-03-18 21:01:44 +00:00
|
|
|
<li> cd to HOME/projects/PROJECTNAME
|
|
|
|
<li> run bin//update_versions, type y or return.
|
2004-02-23 23:40:33 +00:00
|
|
|
<li> run ./stop && ./start
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the web site's Applications page has an entry.
|
|
|
|
|
|
|
|
<h2>Create a work unit</h2>
|
|
|
|
<ul>
|
|
|
|
<li> Using a text editor, create a work unit template file
|
|
|
|
and a result template file.
|
2004-03-15 20:40:59 +00:00
|
|
|
<li> Run create_work
|
2004-06-17 05:08:31 +00:00
|
|
|
<li> Edit config.xml to add
|
2004-06-11 00:04:51 +00:00
|
|
|
".htmlspecialchars("<daemon>")." records for
|
|
|
|
make_work,
|
|
|
|
feeder,
|
|
|
|
transitioner,
|
|
|
|
file_deleter,
|
2004-02-15 19:22:01 +00:00
|
|
|
the trivial validator,
|
|
|
|
and the trivial assimilator.
|
2004-06-17 05:08:31 +00:00
|
|
|
For example",
|
|
|
|
html_text(
|
|
|
|
"<daemon>
|
|
|
|
<cmd>validate_test -app appname</cmd>
|
|
|
|
<output>validate_test.log</output>
|
|
|
|
<pid_file>validate_test.pid</pid_file>
|
|
|
|
</daemon>"
|
|
|
|
),
|
|
|
|
"
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
2004-11-29 22:26:34 +00:00
|
|
|
Visible result: after a project restart,
|
|
|
|
'status' shows the above daemon processes running.
|
2004-06-11 00:04:51 +00:00
|
|
|
<p>
|
|
|
|
Troubleshooting: check the log files of all daemon processes.
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
<h2>Test the system</h2>
|
|
|
|
<ul>
|
2004-02-23 23:40:33 +00:00
|
|
|
<li> Create a client directory (on the same computer or different computer), say HOME/boinc_client.
|
2004-02-15 19:22:01 +00:00
|
|
|
Copy the core client there.
|
|
|
|
<li> Using the web interface, create an account on the project.
|
|
|
|
<li> Run the core client;
|
2004-11-29 22:26:34 +00:00
|
|
|
enter the project URL and the account key.
|
2004-02-15 19:22:01 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
Visible result: the client does a stream of work;
|
|
|
|
the web site shows credit accumulating.
|
|
|
|
|
2004-06-12 19:14:40 +00:00
|
|
|
<p>
|
2004-06-11 00:04:51 +00:00
|
|
|
Troubleshooting: check the log files of all daemon processes.
|
|
|
|
|
2004-02-15 19:22:01 +00:00
|
|
|
<h2>Develop back end components</h2>
|
|
|
|
<ul>
|
2004-12-02 22:56:49 +00:00
|
|
|
<li> Write a <a href=tools_work.php>work generator</a>.
|
|
|
|
<li> Write a <a href=validate.php>validator</a>.
|
|
|
|
<li> Write an <a href=assimilate.php>assimilator</a>.
|
|
|
|
<li> Edit the <a href=configuration.php>configuration file</a>
|
|
|
|
to use these programs instead of the place-holder programs.
|
2004-02-15 19:22:01 +00:00
|
|
|
<li> Make sure everything works correctly.
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2004-02-19 16:43:28 +00:00
|
|
|
<h2>Extras</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li> Add message board categories: see html/ops/create_forums.php
|
|
|
|
</ul>
|
2004-02-15 19:22:01 +00:00
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
?>
|