[Debian Wiki] Update of "BOINC/ServerGuide/AppDeployment" by SteffenMoeller

Debian Wiki debian-www at lists.debian.org
Sun Jul 3 23:41:47 UTC 2011


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "BOINC/ServerGuide/AppDeployment" page has been changed by SteffenMoeller:
http://wiki.debian.org/BOINC/ServerGuide/AppDeployment?action=diff&rev1=10&rev2=11

Comment:
various fixes, extra hints.

  Copy the file from the installed "boinc-app-examples" Debian package into that directory and rename it to distinguish versions and architectures. In our case, the ''app_ver'' variable is that of the BOINC server, the second part of the filename is that of the BOINC architecture.
  
  {{{
- appver=6.12.33 # adjust to the right version
+ appver=6.12 # adjust to the right version, only have single "."
  boincplat=amd64-pc-linux-gnu # adjust to your architecture, maybe i686-pc-linux-gnu
  sudo cp $(dpkg -L boinc-app-examples | grep upper_case) $appdir/uppercase_${appver}_${boincplat}
  }}}
@@ -66, +66 @@

  {{{
  [ -z "$installroot" -o -z "$fileprojectname" ] || . ~/.boinc_test.conf
  if [ -z "$installroot" -o -z "$fileprojectname" ]; then
-    echo 'Variables $installroot ('$installroot  ') and $fileprojectname (' $fileprojectname ') are both required.'
+    echo 'Variables $installroot (' $installroot ') and $fileprojectname (' $fileprojectname ') are both required.'
  elif [ -d "$installroot/$fileprojectname" ]; then
     (cat << EOPROJECTXML
+ <boinc>
- <app>
+  <app>
    <name>upper_case</name>
    <user_friendly_name>upperCASE</user_friendly_name>
- </app>
+  </app>
+ </boinc>
  EOPROJECTXML
  ) | sudo tee "$installroot"/"$fileprojectname"/project.xml
  fi
@@ -82, +84 @@

  cd "$installroot"/"$fileprojectname"
  }}}
  and run initiate the addition of the binary found in the directory structure to the local database {{{
- ./bin/xadd
+ sudo bin/xadd
  }}}
  
+ The local screen output will be similar to
+ 
- The screen output will look like this,
- {{{
- Processing <Platform#None windows_intelx86> ...
-   Committed <Platform#1 windows_intelx86> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 1L,
-  'name': 'windows_intelx86',
-  'user_friendly_name': 'Microsoft Windows (98 or later) running on an Intel x86-compatible CPU'}
- Processing <Platform#None windows_x86_64> ...
-   Committed <Platform#2 windows_x86_64> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 2L,
-  'name': 'windows_x86_64',
-  'user_friendly_name': 'Microsoft Windows running on an AMD x86_64 or Intel EM64T CPU'}
- Processing <Platform#None i686-pc-linux-gnu> ...
-   Committed <Platform#3 i686-pc-linux-gnu> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 3L,
-  'name': 'i686-pc-linux-gnu',
-  'user_friendly_name': 'Linux running on an Intel x86-compatible CPU'}
- Processing <Platform#None x86_64-pc-linux-gnu> ...
-   Committed <Platform#4 x86_64-pc-linux-gnu> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 4L,
-  'name': 'x86_64-pc-linux-gnu',
-  'user_friendly_name': 'Linux running on an AMD x86_64 or Intel EM64T CPU'}
- Processing <Platform#None powerpc-apple-darwin> ...
-   Committed <Platform#5 powerpc-apple-darwin> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 5L,
-  'name': 'powerpc-apple-darwin',
-  'user_friendly_name': 'Mac OS X 10.3 or later running on Motorola PowerPC'}
- Processing <Platform#None i686-apple-darwin> ...
-   Committed <Platform#6 i686-apple-darwin> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 6L,
-  'name': 'i686-apple-darwin',
-  'user_friendly_name': 'Mac OS 10.4 or later running on Intel'}
- Processing <Platform#None x86_64-apple-darwin> ...
-   Committed <Platform#7 x86_64-apple-darwin> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 7L,
-  'name': 'x86_64-apple-darwin',
-  'user_friendly_name': 'Intel 64-bit Mac OS 10.5 or later'}
- Processing <Platform#None sparc-sun-solaris2.7> ...
-   Committed <Platform#8 sparc-sun-solaris2.7> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 8L,
-  'name': 'sparc-sun-solaris2.7',
-  'user_friendly_name': 'Solaris 2.7 running on a SPARC-compatible CPU'}
- Processing <Platform#None sparc-sun-solaris> ...
-   Committed <Platform#9 sparc-sun-solaris> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 9L,
-  'name': 'sparc-sun-solaris',
-  'user_friendly_name': 'Solaris 2.8 or later running on a SPARC-compatible CPU'}
- Processing <Platform#None sparc64-sun-solaris> ...
-   Committed <Platform#10 sparc64-sun-solaris> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 10L,
-  'name': 'sparc64-sun-solaris',
-  'user_friendly_name': 'Solaris 2.8 or later running on a SPARC 64-bit CPU'}
- Processing <Platform#None powerpc64-ps3-linux-gnu> ...
-   Committed <Platform#11 powerpc64-ps3-linux-gnu> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 11L,
-  'name': 'powerpc64-ps3-linux-gnu',
-  'user_friendly_name': 'Sony Playstation 3 running Linux'}
- Processing <Platform#None anonymous> ...
-   Committed <Platform#12 anonymous> ; values:
- {'_dirty': False,
-  '_lazy_lookups': {},
-  'create_time': 1308990279L,
-  'deprecated': 0,
-  'id': 12L,
-  'name': 'anonymous',
-  'user_friendly_name': 'anonymous'}
- Processing <App#None upper_case> ...
+ {{{Processing <App#None upper_case> ...
- /var/tmp/boinc/test2/py/Boinc/db_base.py:63: Warning: Field 'host_scale_check' doesn't have a default value
+ /var/tmp/boinc/boinctest/py/Boinc/db_base.py:63: Warning: Field 'host_scale_check' doesn't have a default value
    cursor.execute(command)
    Committed <App#1 upper_case> ; values:
  {'_dirty': False,
   '_lazy_lookups': {},
   'beta': 0,
-  'create_time': 1308990279L,
+  'create_time': 1309733733L,
   'deprecated': 0,
   'homogeneous_redundancy': 0,
   'host_scale_check': 0,
@@ -215, +109 @@

   'weight': 1.0}
  }}}
  
+ And when executing that line again, nothing happens: {{{
+ # bin/xadd 
+ Processing <App#None upper_case> ...
+   Skipped existing <App#None upper_case>
- 
- The xadd tool will parse the project.xml and will put the configurations to the database.
- 
- (can you explain what this means? why did the i686/amd64 entries not show anything?) Please also show the respective entries in the database, e.g. with {{{
- echo 'select * from ... | mysql -u $host -p
  }}}
- sm)
+ 
+ The file ''project.xml'' is not touched.
+ 
+ 
+ The database has now seen the application:
+ 
+ {{{
+ 
+ $ echo "select * from app" | mysql -u root -p $dbprojectname
+ Enter password: 
+ id      create_time     name            min_version  deprecated  user_friendly_name  homogeneous_redundancy  weight  beta    target_nresults min_avg_pfc     host_scale_check
+ 1       1309734539      upper_case       0            0           upperCASE           0                       1       0       0               1               0
+ }}}
  
  = Sign the application binary =
  
@@ -230, +135 @@

  (Is this a different upper_case folder? If not, where is the version of the upper_case/uppercase filenames? sm)
  
  {{{
- ./bin/sign_executable apps/upper_case/upper_case_$(boincplat) code_sign_private_key_file
- te >> apps/upper_case/upper_case_$(boincplat).sig
+ privateKeyfile="./keys/code_sign_private"
+ if [ -z "$appver" -o -z "$boincplat" ]; then
+    echo "Please set appver and boincplat variables from above."
+ elif [ ! -r "$privateKeyfile" ]; then
+    echo 'Have your private key ready as created during setup, expected at $privateKeyfile .'
+ else 
+    sudo ./bin/sign_executable apps/upper_case/upper_case_${appver}_${boincplat} "$privateKeyfile" | sudo tee apps/upper_case/upper_case_${appver}_${boincplat}.sig
+ fi
  }}}
  
  Update the boinc database,



More information about the pkg-boinc-commits mailing list