40 lines
770 B
Docker
40 lines
770 B
Docker
# 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
|
|
|
|
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
|
|
RUN python2 pybitmessage -t
|
|
|
|
|
|
CMD ["tox"]
|