Table of Contents
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host|
Note
|
In the Section devContainer you can see how to go into a development container. The ssh-copy-id-command is working from inside the development container. Now you can ssh from the development container to your Host/Pi/…
|
freeze python requirements
pip freeze > docker/requirements.txtstart docker container from outside the devContainer
docker-compose -f ./docker-compose.yml up --build --force-recreate -dstop docker container
docker-compose -f ./docker-compose.yml downcreat an network for the developing container if it is not existing already. (e.g. docker-compose wasn’t executed before)
docker-compose -f ./docker-compose.network.yml upload development Container in VSC
-
Ctrl+Shift+P or F1
-
type in :
Remote-Containers: Reopen in Container
|
Important
|
The Extension Remote-Containers is needed |
-
Find out the UUID of the USB Storage
sudo blkid
-
Make a directory for the USB Storage
sudo mkdir /mnt/usb1
-
Editing "fstab" file for auto-mounting the USB Storage
sudo nano /etc/fstab
adding the follow line in the file (with your UUID)
UUID="f8f8ba1c-7dfd-45ff-b8dc-730b576f4344" /mnt/usb1 ext4 defaults,auto,rw,nofail,exec 0 0 -
read fstab with
sudo mount -a
from laptop to Raspberry pi
rsync -r /workspaces/HomeAssiWithSolar/ ubuntu@192.168.178.3:/mnt/usb1/homeassi/ --delete --exclude "SSH"add local bind-mounts. Makes Hot-deployment possible
docker-compose -f ./docker-compose.yml -f ./docker-compose.local.yml -f ./docker-compose.arm.yml -f ./docker-compose.prod.yml up --build --force-recreate -d