Created
October 17, 2020 13:06
-
-
Save cdecker/ff967ac0ce4693ed2ac1454fc867041a to your computer and use it in GitHub Desktop.
Dockerfile emulating travis-ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y libsqlite3-dev cppcheck valgrind gcc-4.8 gettext libc6-dev-armhf-cross libc6-dev-arm64-cross gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf qemu-user-static binfmt-support libsecp256k1-dev libpq-dev postgresql git | |
ENV TIMEOUT=180 | |
ENV export PYTEST_PAR=2 | |
ENV ARCH=64 | |
ENV TEST_CMD="make" | |
ENV TRAVIS_COMPILER=gcc | |
ENV CC=${CC:-gcc} | |
ENV CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} | |
ENV NO_PYTHON=0 | |
WORKDIR /home/travis/build/cdecker/lightning | |
RUN apt-get install -y wget build-essential zlib1g-dev libsodium-dev net-tools libsqlite3-dev libgmp-dev libtool automake autoconf gettext python3-mako python3-pip libssl-dev libreadline-dev libbz2-dev | |
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
ENV PYENV_ROOT=/root/.pyenv | |
ENV PATH=$PYENV_ROOT/bin:$PATH | |
RUN pyenv init - >> /root/.bash_profile | |
RUN git clone https://github.com/s1341/pyenv-alias.git $(pyenv root)/plugins/pyenv-alias | |
RUN VERSION_ALIAS="3.7" pyenv install 3.7.5 && pyenv global 3.7 && python3 -m pip install --upgrade pip | |
CMD git clone /repo /home/travis/build/cdecker/lightning && cd /home/travis/build/cdecker/lightning && .travis/build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment