Trying to build a torizon install, with my Overlay

@eric.tx
builder doesn’t use the tcbuild.yaml file when using the bundle command. It uses the docker-compose.yml file.

version: “3.9”
services:
gimbal3b-latest:
build:
context: .
dockerfile: Dockerfile.debug
#image: torizon6-gimbal3b:runme
#image: localhost:5002/gimbal3bcontainer-debug:arm64
image: localhost:5002/torizon6gimbal3b:latest
#image: localhost:5002/torizon6-gimbal3b:runme
volumes:
- /mnt/sd1/logs:/home/torizon/logs
environment:
- HOME=/root
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- HOSTNAME=verdin-imx8mp-14762705
- PWD=/root/app/
- APP_EXECUTABLE=app
working_dir: /root/app/
command: bash -c “./Gimbal3b”
network_mode: “host”
cap_add:
- NET_ADMIN
devices:
- “/dev/spidev1.0”
- “/dev/gpiochip0”
- “/dev/gpiochip1”
- “/dev/gpiochip2”
- “/dev/gpiochip3”
- “/dev/gpiochip4”
- “/dev/verdin-uart1”
- “/dev/verdin-uart2”
- “/dev/verdin-uart3”
- “/dev/i2c-5”
ports:
- 2230:2230
#restart: unless-stopped

I did try the --login-to 192.168.12.185:5002 username password

I got this error:
Error: container images download failed: 500 Server Error for https://172.17.0.4:22376/v1.40/auth: Internal Server Error (“Get https://192.168.12.185:5002/v2/: http: server gave HTTP response to HTTPS client”)

I also tried it with the IP address (instead of localhost) as well. This also didn’t work.
However, this DID work!

torizoncore-builder bundle --force --platform arm64 --login-to 192.168.12.185:5002 username password --dind-param=“–insecure-registry=192.168.12.185:5002” docker-compose.yml

With the external IP address in the compose file. Holy Moly!!

Steve

@Evets,

Good to hear.

-Eric

@eric.tx
In Version 3.9.0 of builder, this no longer works. Here is the error:
torizoncore-builder bundle: error: argument --dind-param: expected one argument

I have tried to use single quotes instead of double quotes, and no quotes at all, but nothing seems to work. I’ve removed the --dind-param altogether and still no joy. Any ideas?

Thanks,
Steve

@eric.tx
I found the answer. the new format is:

–dind-param=“–insecure-registry=192.168.12.185:5002”
apparently it requres an = sign instead of a space character.

Steve

The final version is this, as you don’t need the username and password if your local directory is insecure:

torizoncore-builder bundle --force --platform arm64 --dind-param=“–insecure-registry=192.168.12.185:5002” docker-compose.yml

Where you would substitute your local IP address (or maybe localhost) in place of the IP address shown, of course, this is assuming you are running the builder on the same machine that your local docker repository is on. I use the --force to avoid having to remove the “bundle” directory…

Steve