commit | f0da902d4e260e8bf628a81b939ec1ca2c707ba3 | [log] [tgz] |
---|---|---|
author | Prathmesh Prabhu <pprabhu@chromium.org> | Mon Dec 21 23:51:06 2020 |
committer | Prathmesh Prabhu <pprabhu@google.com> | Mon Dec 21 23:57:02 2020 |
tree | 54877e80d39c846647e406ce14228c93482b93a1 | |
parent | 514b6edd7a1bf120fb4ae5af1c818ca61b6dc8d7 [diff] |
Switch to origin/main for chromite BUG=chromium:1119175 TEST=make load-libs Change-Id: I36fc5dd4d2c4e513bf7adb33d10be4435691bdbc
Install mysql client:
sudo apt-get install default-libmysqlclient-dev libssl-dev
Install python libs:
make load-libs
_mysql.c:2005:41: error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'
:
This may happen on Debian based system. Workaround: Run sudo sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp
.
Run unit test:
make unit-test
config-dev
file:tko: credentials: hostname: your_sql_instance_ip username: sql_use password: sql_password database: sql_db_name timezone: US/Pacific
Run ci_results_archiver
locally:
make run-local
Note, this will run in one-shot mode with the dev config. Make sure your desktop IP has been whitelisted by the TKO Cloud SQL instance. To export data to BigQuery, you need a service account json key in the folder. For internal users, run make load-credentials
first.
Build the docker locally:
make local-build
Build docker on GCP:
make cloud-build
By default it creates the image to project google.com:chromeos-lab
. If this is not your preference, please configure it in Makefile
.
If you want to deploy the docker to ChromeOS Lab project, please refer our internal doc for more details.