Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions hail.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,10 @@ There are 3 categories of machines:
kubectl --namespace $NAMESPACE exec -it auth-6d559bd9b6-npw56 -- /bin/bash
```

1. On the pod, connect to the SQL instance and set the `$NAMESPACE` variable (the one you exported earlier is not available to the pod). From `sql-config.cnf`, set the variable `$HOST`, and note the `password`. You may need to install the mysql client if the command isn't available, this can be done with `apt update` and `apt install mysql-client`.
1. On the pod, connect to the SQL instance. You may need to install the mysql client if the command isn't available, this can be done with `apt update` and `apt install mysql-client`.

```bash
cd /sql-config
cat /sql-config/sql-config.cnf
export NAMESPACE="<janedoe>"
export HOST="<host-from-sql-config.cnf>"
mysql --ssl-ca=server-ca.pem --ssl-cert=client-cert.pem --ssl-key=client-key.pem --host=$HOST --user=$NAMESPACE-auth-user --password
mysql --defaults-file=/sql-config/sql-config.cnf
```

1. Within `mysql>`, run the following, but note that you'll have to replace `$NAMESPACE`, `$EMAIL`, and `$TOKEN` manually:
Expand Down Expand Up @@ -364,7 +360,7 @@ kubectl --namespace $NAMESPACE exec -it $POD -- /bin/bash

# connect to the database:
apt update && apt install -y mysql-client
mysql --defaults-file=sql-config/sql-config.cnf
mysql --defaults-file=/sql-config/sql-config.cnf
```

### Syncing local changes to pod
Expand Down Expand Up @@ -529,7 +525,7 @@ Once in, install mysql-client and open SQL client connection:

```bash
apt update && apt install mysql-client
mysql --defaults-file=sql-config/sql-config.cnf
mysql --defaults-file=/sql-config/sql-config.cnf
# execute your SQL command
```

Expand All @@ -544,6 +540,24 @@ cd infra
terraform apply -var-file=global.tfvars
```

### Copy an image to the Artifact Registry (Optional)

In the event that you may need to copy over an image to our Artifact Registry, you can launch the `hail-dev` VM which has `skopeo` installed:

```bash
cd ...your hail checkout...
cd docker/third-party
make NAMESPACE=default copy
```

You can also inspect the following files for more fine-grained control over what/how you are copying:

```txt
- docker/third-party/Makefile
- docker/third-party/copy_images.sh
- docker/copy_image.sh
```

### Billing projects

> See [Budgets](budgets.md) for more info
Expand Down