---
# System prepended metadata

title: Thursday Update / Meeting notes
tags: [Meeting notes, Daily update]

---

# Thursday Update / Meeting notes

###### tags: `Daily update` `Meeting notes`

## Rust exploration
There is A WHOLE LOT of resources about RUST, [17 at least](https://serokell.io/blog/learn-rust)

It seems to be a big time-sinker, and it's very similar to Golang as far as I've read, which is not much.
## GCP docker OS come on just work
[These are the supported OSes](https://cloud.google.com/compute/docs/containers)
For the image, I'm trying timescaledb image

This is the compose yml [link](https://github.com/filecoin-project/sentinel-visor/blob/master/docker-compose.yml), the timescaledb section.
```
timescaledb:
    container_name: timescaledb
    image: timescale/timescaledb:latest-pg12
    ports:
      - "5432:5432"
    environment:
      - POSTGRES_PASSWORD=password
    volumes:
      - timescaledb:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 5s
      retries: 5
```
I can understand the `image`, but how to map the rest onto the page?
![](https://i.imgur.com/tbYt3Z2.png)
I'm using the image:
> registry.hub.docker.com/library/timescale/timescaledb:latest-pg12

OK, so the enviornment var must be `environment`

`ports` must be related to `configure firewall rules`[this](https://cloud.google.com/compute/docs/containers/configuring-options-to-run-containers)
This seems to say that the container already maps all ports to the VM, but the VM ports are not published, so we can publish later.


what is the `volumes` tag?
[HELP me, can't read this too long](https://docs.docker.com/storage/volumes/)
[Horray much simpler example](https://devopsheaven.com/docker/docker-compose/volumes/2018/01/16/volumes-in-docker-compose.html)


How to I do healthcheck on the container?
Well, the GCP health check refer to a different type of check: it sends TCP/HTTP/SSL/HTTP2 and stuff [link](https://cloud.google.com/compute/docs/instance-groups/autohealing-instances-in-migs)
It's not the generic run a `CMD-SHELL` cmd.
After extensive search, can't get a tutorial on this. I guess GCP can't do this on initial configure.

Is that all i have to do?


---

I had to set my additional disk to 230GB since total cannot exceed 250G.
### template
I created a template

Afterwards, when creating instance
I just have to name the disk, mount it under `/mnt/disks/disk-1`. 

Since I already mounted a volume from `/mnt/disks/disk-1/timescaledb` to `/var/lib/postgresql`. Hopefully this works.

**Help** I honestly don't know why there isn't an option to format the disk? Does GCP just mount it immediately? That wouldn't work right?

It did work, nice. But i have not yet connected to the instance or know if the container is running healthily. But at least the creation succeeded. 
I will be charged for the disk occupation only since I have suspended the VM for now.

## Now to add more containers to this OS
Need to learn the GCP os stuff, GCP CLI for adding containers (and health checks?).


## AWS Activate account
Account: operations@...

Sylvan表示还是用AWS不用腾讯云了，离客户比较近。申请了founder‘s package


## Learning new Cloud services?
[Azure container services cs AWS Fargate](http://dockone.io/article/2974) Seems unnecessary for our case.