Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose with developer image fails #89

Open
spekary opened this issue Mar 2, 2022 · 4 comments
Open

docker-compose with developer image fails #89

spekary opened this issue Mar 2, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@spekary
Copy link

spekary commented Mar 2, 2022

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
Copy link
Author

spekary commented Mar 2, 2022

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

@stephanosio stephanosio added the bug Something isn't working label Apr 8, 2022
@stephanosio stephanosio changed the title docker.io image does not work docker-compose with developer image fails Apr 12, 2022
@amcelroy
Copy link

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.

@spekary
Copy link
Author

spekary commented Apr 12, 2022

Nope. Just doing what the README describes.

@amcelroy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants