-
sudo nano /etc/environment
-
Add the following variables to the file:
ACCESS_KEY=<access key>
SECRET_KEY=<secret key>
-
Save the file and quit nano.
-
Then, log out of the Coral and log back in for the changes to take effect.
-
Confirm that
ACCESS_KEY
andSECRET_KEY
are in in the environment by typingenv
. -
cd /usr/local/teachable-camera/containers
-
docker build -t teachable-camera/upload:0.1 -t teachable-camera/upload:latest .
-
docker run --detach --restart unless-stopped --name s3upload -e ACCESS_KEY=$ACCESS_KEY -e SECRET_KEY=$SECRET_KEY -v /home/mendel/capture:/capture -v /home/mendel/archive:/archive teachable-camera/upload
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.