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 environment for testing #17

Open
skwee opened this issue Dec 23, 2016 · 0 comments
Open

Docker environment for testing #17

skwee opened this issue Dec 23, 2016 · 0 comments

Comments

@skwee
Copy link

skwee commented Dec 23, 2016

Not an issue but might be of some use for others.
I had the same problems as others here with the compilation of pysimavr.
I succeeded with a docker environment. Installation went fine and all examples are working.
Here is the Dockerfile:

FROM ubuntu:latest
MAINTAINER xxxxxxxxxxxxxxxxxxx

RUN apt-get update && \
    apt-get -y upgrade && \
    DEBIAN_FRONTEND=noninteractive apt-get -y install \
    arduino avrdude \
    gcc libelf-dev \
    freeglut3-dev scons swig \
    python-pip python-dev

RUN pip install pysimavr

CMD /bin/bash
# build image (takes some time)
docker build . -t docker-simavr2

# run docker container
docker run -ti docker-simavr2 --name=simavr2

wait for docker container to start

# run pysimavr examples inside the container
python /usr/local/lib/python2.7/dist-packages/pysimavr/examples/hello.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant