]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
database: Use unix socket to avoid the need for db login credentials
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 16 Oct 2015 22:33:59 +0000 (00:33 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 16 Oct 2015 22:33:59 +0000 (00:33 +0200)
conf.py
scripts/database.py
targets/bbb/conf.py
targets/ryuglab/conf.py

diff --git a/conf.py b/conf.py
index b8ee9865bdb5fb7cff7659dfbf1543a5c22d6dbe..4c4ed8ffc1819143215d7b492ef8855bb30b84a0 100644 (file)
--- a/conf.py
+++ b/conf.py
@@ -39,18 +39,19 @@ picosat_args = []
 # db_database
 # Database in PostgreSQL to be used for this tools
 db_database = 'linux-conf-perf'
-# db_user
-# Define PostgreSQL user
-db_user = 'user'
-# db_password
-# Define PostrgreSQL user password
-db_password = 'password'
-# db_host
-# Address of PostgreSQL database server
-db_host = 'localhost'
-# db_port
-# Port of PotgreSQL database server
-db_port = 5432
+
+# # db_user
+# # Define PostgreSQL user
+# db_user = 'user'
+# # db_password
+# # Define PostrgreSQL user password
+# db_password = 'password'
+# # db_host
+# # Address of PostgreSQL database server
+# db_host = 'localhost'
+# # db_port
+# # Port of PotgreSQL database server
+# db_port = 5432
 
 # multithread
 # Define if measurement and kernel build should be executed in parallel.
index 27c6a92cec6fd7c72cf0d71b18626b338c1bf88a..a41d7039d43e4f5588d329d75037d006d5561975 100644 (file)
@@ -26,11 +26,8 @@ class database:
        "Class used for accessing PostgreSQL project database."
        def __init__(self):
                self.db = postgresql.open(database = conf.db_database,
-                               user = conf.db_user,
-                               password = conf.db_password,
-                               host = conf.db_host,
-                               port = conf.db_port
-                               )
+                                                                 unix='/var/run/postgresql/.s.PGSQL.5432',
+                                                                 password='')
                # check if tables are present
                tables = ('toolsgit', 'configurations', 'measure')
                for tab in tables:
index 187d3f43bddce23851e50ec9033b6b4ad183fcd0..7612aa8765d1249d20ca398375bae556d91aa8c6 100644 (file)
@@ -7,9 +7,6 @@ kernel_env = {'SRCARCH': kernel_arch, 'ARCH': kernel_arch, 'KERNELVERSION': kern
 boot_command = ['targets/bbb/boot/boot']
 parse_command = ['tests/cyclictest/parse']
 
-db_user = 'kocikare'
-db_password = 'ohNg3Ien'
-
 multithread = False
 
 
index 8ab26ac25229dbda210733509de201f51968a73a..e7f503debc27530bb43c7005d56b3634283ffa17 100644 (file)
@@ -8,9 +8,6 @@ build_command = ['make', 'uImage']
 boot_command = ['targets/ryuglab/boot/boot']
 parse_command = ['tests/cyclictest/parse']
 
-db_user = 'kocikare'
-db_password = 'ohNg3Ien'
-
 multithread = False