mirror of
https://github.com/LIV2/amitools.git
synced 2025-12-05 22:22:45 +00:00
fixed docker tox
This commit is contained in:
parent
4eeef26b98
commit
17f44ce9fa
28
Dockerfile
28
Dockerfile
@ -1 +1,27 @@
|
||||
FROM themattrix/tox
|
||||
FROM debian:11
|
||||
|
||||
RUN apt-get update && apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
|
||||
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
|
||||
xz-utils tk-dev libffi-dev liblzma-dev curl git
|
||||
|
||||
RUN useradd -m python
|
||||
USER python
|
||||
WORKDIR /home/python
|
||||
|
||||
RUN git clone git://github.com/pyenv/pyenv.git .pyenv
|
||||
|
||||
ENV HOME /home/python
|
||||
ENV PYENV_ROOT $HOME/.pyenv
|
||||
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
||||
|
||||
# setup python
|
||||
RUN for a in 3.6.15 3.7.12 3.8.12 3.9.9 3.10.1 ; do pyenv install $a ; done
|
||||
|
||||
# first one is used
|
||||
RUN pyenv global 3.10.1 3.6.15 3.7.12 3.8.12 3.9.9 && pyenv rehash
|
||||
|
||||
# install tox
|
||||
RUN pip install tox wheel
|
||||
|
||||
WORKDIR /src
|
||||
ENTRYPOINT [ "tox" ]
|
||||
|
||||
@ -2,9 +2,10 @@ include MANIFEST.in
|
||||
include README.md
|
||||
include CHANGELOG.md
|
||||
include Makefile
|
||||
include musashi/softfloat/softfloat-macros
|
||||
include musashi/softfloat/softfloat-specialize
|
||||
include machine/musashi/softfloat/softfloat-macros
|
||||
include machine/musashi/softfloat/softfloat-specialize
|
||||
include machine/musashi/*.txt
|
||||
recursive-include amitools/data *
|
||||
recursive-include amitools/fs/block/bootcode *
|
||||
recursive-include musashi *.pyx *.c *.h readme.txt history.txt
|
||||
recursive-include machine *.pyx *.c *.h
|
||||
recursive-include gen *.c *.h
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec docker run -it --rm -v $PWD:/src:ro amitools-tox tox "$@"
|
||||
exec docker run -it --rm -v $PWD:/src amitools-tox "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user