docker-image icon indicating copy to clipboard operation
docker-image copied to clipboard

docker-compose with developer image fails

Open spekary opened this issue 3 years ago • 4 comments
trafficstars

Using this docker-compose.yml file:

version: "2"
services:
    zephyr:
        image: docker.io/zephyrprojectrtos/zephyr-build:latest
        container_name: zephyr
        volumes:
            - /myworkspace:/workdir
        ports:
            - "5900:5900"

I get the following error starting the container:

zephyr | Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml" zephyr | zephyr | ERROR: openbox-xdg-autostart requires PyXDG to be installed

spekary avatar Mar 02 '22 21:03 spekary

I tried using the run script in the README file and got the same error.

spekary avatar Mar 02 '22 21:03 spekary

Are you trying to name the docker container using --name? That was an issue for me, removing --name helped. Ultimately went with docker-compose for naming and easier path handling when setting up the container.

amcelroy avatar Apr 12 '22 15:04 amcelroy

Nope. Just doing what the README describes.

spekary avatar Apr 12 '22 20:04 spekary

There is an updated readme as of yesterday morning (4-12-2022), have you tried it?

With the latest instructions, I have a Dockerfile, docker-compose.yml, and a makefile to load up everything and build west. This was advised from a fellow developer.

Attached are the files, if they help. Run these from a new folder:

Pull the Zephyr repo into the current directory

make build

Starts the container, on the first run, it will init the image and run the west startup process, so it can take a while.

make run

Gives shell access

make shell

I've used the container to build a sample, then use host OS to flash the device. Hope it helps!

docker-solution.zip

amcelroy avatar Apr 13 '22 13:04 amcelroy