This repository has been archived on 2024-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-20/packages/Dockerfile.fedora

40 lines
770 B
Docker
Raw Normal View History

# A container for testing PyBitmessage on Fedora
FROM fedora:31
EXPOSE 8444 8442
ENV HOME /home/bitmessage
ENV BITMESSAGE_HOME ${HOME}
ENV TRAVIS_DIST fedora31
RUN dnf -y install \
glibc-langpack-en gcc-c++ libcap-devel openssl-devel \
python2-devel python2-pip python2-qt4 \
redhat-rpm-config tor xorg-x11-server-Xvfb
RUN ln -s /usr/bin/python2 /usr/bin/python
2021-02-17 21:37:41 +01:00
RUN dnf -yq install tox
ENV LC_ALL en_US.utf8
WORKDIR ${HOME}
ADD . ${HOME}
# Install tests dependencies
RUN pip2 install --upgrade pip && pip2 install -r requirements.txt
# Install
RUN python2 setup.py install
# Create a user
RUN useradd bitmessage && chown -R bitmessage ${HOME}
USER bitmessage
# Generate default config and run core tests
2021-02-17 21:37:41 +01:00
RUN python2 pybitmessage -t
2021-02-17 21:37:41 +01:00
CMD ["tox"]