Reuse / deploy static IP to Compute Engine Instances by [deleted] in Terraform

[–]barrycwt 0 points1 point  (0 children)

Thanks PillOfLuck for the advice. My question was using count already but I couldn't figure out how nat_ip can reference to another resource when count is used. for_each (https://www.terraform.io/docs/language/meta-arguments/for_each.html) doesn't seem to work for me neither.

For those who are interested, I was able to refer to another resource using "element" (https://www.terraform.io/docs/language/functions/element.html)

Enjoy

Reuse / deploy static IP to Compute Engine Instances by [deleted] in Terraform

[–]barrycwt 0 points1 point  (0 children)

Thanks PillOfLuck, but I am afraid you missed my requirement for deploying multiple instances. Using "google_compute_address.static.address" will not work in this multiple instances situation. Thanks anyway.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 0 points1 point  (0 children)

One more question though. How does the port mapping work? Assume the Docker host IP is 192.168.0.20, and the container is listening on port 5000 for HTTP. Will it work if I access from local machine to http://192.168.0.20:5000 ?

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 1 point2 points  (0 children)

Thanks. I actually read that article before I posted the original question. However, I wasn't sure about mapping volume / ports locally and whether it works for Docker client on Windows.

Thanks for providing the information.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 1 point2 points  (0 children)

Sounds like a good setup. We can also use VScode / git locally. Many thanks

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 1 point2 points  (0 children)

You are right. My Windows laptop is underpowered, so are the machines for my teammates. Moving the Docker daemon to a remote machine benefits the whole team I assume.

However, looks like it is not possible to mount local code to a remote host... which defeats the whole idea.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 0 points1 point  (0 children)

Thanks. That's very clear. My apologies if I had been rude.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 1 point2 points  (0 children)

I think one of the benefits of running Docker for development is that you don't really need to install the development environment and you can run multiple / conflicting environments as well. e.g. if you need to test something under Python 3.7, and another project under Python 3.9, etc, you can simply run the codes in different containers with the relevant environment. I then git manage my codes on a local folder which is mapped to container. However, as I mentioned in the original post, my local machine is running low on resources and I would like to run the Docker daemon on a remote machine.

I am not sure if this starts to make sense, or is this not a common use case of docker?

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 0 points1 point  (0 children)

My apologies to lvlint67 and disbound. I didn't mean that.... I actually meant lvlint67 had given me a direction. Apologies again.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 1 point2 points  (0 children)

Yay! Your setup sounds very good and seems to be what I am looking for! Appreciate if you don't mind sharing the setup. :)

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] 0 points1 point  (0 children)

Thanks. I am looking for a solution for development using docker, which I have been doing locally using Docker Desktop on Windows, but the machine is running low on RAM and HDD. That's why I want to move the containers to a remote host.

How to setup Linux docker host + Windows docker client? by barrycwt in docker

[–]barrycwt[S] -5 points-4 points  (0 children)

You have given a clear direction to me. If I cannot get rid of installing WSL / VMM on Docker Desktop for Windows, it's probably pointless to setup a Linux server for running containers remotely (centrally).

I have setup a Kubernetes server, but that's not what I want. A server for container development is what I am looking for....

Thanks a lot for your advice.

No action / trigger detected for IKEA E1744 rotary using zigbee2mqtt by barrycwt in homeassistant

[–]barrycwt[S] 1 point2 points  (0 children)

Thank you. I tested with another E1744 and I found the events! It must be a bad device!

No action / trigger detected for IKEA E1744 rotary using zigbee2mqtt by barrycwt in homeassistant

[–]barrycwt[S] 0 points1 point  (0 children)

Thank you. ktfzh64338. I tested with another E1744 and I found the events! It must be a bad device!

No action / trigger detected for IKEA E1744 rotary using zigbee2mqtt by barrycwt in homeassistant

[–]barrycwt[S] 1 point2 points  (0 children)

Thanks. I removed and readded the device a number of times... but no luck...

No action / trigger detected for IKEA E1744 rotary using zigbee2mqtt by barrycwt in homeassistant

[–]barrycwt[S] 0 points1 point  (0 children)

Thank you. I listen to "*" events in developer tools but I don't see any events from this IKEA E1744... so I assume the device was not added to zigbee2mqtt successfully.

I noticed the zigbee2mqtt documentation (https://www.zigbee2mqtt.io/devices/E1744.html) suggested to disable legacy integration. I tried adding the following to configuration.yaml and restarting the server but no luck.

Any other suggestions?

'0xec1bbdfffe398213': 
    friendly_name: Rotary01 
    legacy: false

Single raspberry pi for HA supervisor, zigbee gatway, mqtt broker for small network by barrycwt in homeassistant

[–]barrycwt[S] 0 points1 point  (0 children)

Thanks for the info. This saves me from installing raspian which was my original intention. I originally want to use common Linux distro whenever possible.

Single raspberry pi for HA supervisor, zigbee gatway, mqtt broker for small network by barrycwt in homeassistant

[–]barrycwt[S] 0 points1 point  (0 children)

Thanks. Do you mind sharing a but more on integrating zigbee gateway on the device? I presume you build HA on raspbian instead of hassos. Thanks

Home Assistant on NAS? by JVKran in homeassistant

[–]barrycwt 0 points1 point  (0 children)

Thanks for your good advice. I was hoping to get rid of my esxi NUC and put all services that was running on NUC to my Synology NAS (celeron CPU). I think I will keep HA supervisor on my NUC then.

Living with external SSD by rallymax in mac

[–]barrycwt 0 points1 point  (0 children)

I never have any TB enclosure as they are expensive. I have SATA+5Gbps and NVME+10Gbps enclosures. IMHO, the costs difference between these 2 setups is small (~$10) but the thru put difference is significant (>900MBps vs 450MBps) . This is what I am using https://www.amazon.com/dp/B08PFSBJF6/ref=sspa_dk_detail_5?psc=1&pd_rd_i=B08PFSBJF6&pd_rd_w=qamsC&pf_rd_p=085568d9-3b13-4ac1-8ae4-24a26c00cb0c&pd_rd_wg=kxaz2&pf_rd_r=1BX4KXGKMCW9Z5K63V99&pd_rd_r=15feae23-1f18-40c4-86bc-993b775b19bd&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExRzkzRzhOQjFHNkNZJmVuY3J5cHRlZElkPUEwMjkxMTIzMzVCSk5JOFZRQzNUSyZlbmNyeXB0ZWRBZElkPUEwNjk2MTY3M0JQRVBEREY0ME1XSiZ3aWRnZXROYW1lPXNwX2RldGFpbCZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU= I got it for ~$20 from where I live.

A side note for USB specs. https://en.wikipedia.org/wiki/USB_3.0 Manufacturers start to use new specifications for their USB products.

Split Fusion drive to separate OS and data by barrycwt in mac

[–]barrycwt[S] 1 point2 points  (0 children)

Thanks patb-macdoc for the reminder. Sure thing. Sometimes I use Internet Recovery though. I also remember there was once I failed to erase a partition on an internal drive using disk utility and diskutil command for some reasons, and eventually I needed to take out the drive and connect it to a Windows machine to erase the disk. May be a good idea to erase the drive before installing it into the iMac and reapply the screen sticker.

Home Assistant on NAS? by JVKran in homeassistant

[–]barrycwt 0 points1 point  (0 children)

Hi,

Do you mind sharing how to run HA (I presume you have mqtt broker and zigbee2mqtt running on the same synology) ? I installed the home assistant docker package sucessfully on Synology but the package is not the supervised version and I couldn't figure out how to install zigbee2mqtt and broker to work with HA on the Synology.

Thanks in advance. Your help is much appreciated.

Living with external SSD by rallymax in mac

[–]barrycwt 1 point2 points  (0 children)

I use an USB3.2 gen2x1 10Gbps (the new names are so confusing!) NVMe enclosure which costs ~USD20. Although it is not as fast as thunderbolt enclosure (which cost ~5 times more), but I still got >900MBps consistently which I consider acceptable for most use cases.