Skip to content

Docker environment for testing #17

@skwee

Description

@skwee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions