Skip to content

Instantly share code, notes, and snippets.

@xxuejie
Created August 17, 2017 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xxuejie/5f77dd5bd81286adbdd6c4aa1d3445b8 to your computer and use it in GitHub Desktop.
Save xxuejie/5f77dd5bd81286adbdd6c4aa1d3445b8 to your computer and use it in GitHub Desktop.
Dockerfile for reproducing crystal build failure
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get install \
libbsd-dev \
libedit-dev \
libevent-core-2.0-5 \
libevent-dev \
libevent-extra-2.0-5 \
libevent-openssl-2.0-5 \
libevent-pthreads-2.0-5 \
libgmp-dev \
libgmpxx4ldbl \
libssl-dev \
libxml2-dev \
libyaml-dev \
libreadline-dev \
automake \
libtool \
git \
llvm \
libpcre3-dev \
build-essential -y
RUN apt-get install -y curl apt-transport-https
RUN curl https://dist.crystal-lang.org/apt/setup.sh | bash
RUN apt-get install -y crystal
RUN apt-get install -y pkg-config
RUN git clone https://github.com/ivmai/bdwgc.git /bdwgc
RUN git clone https://github.com/ivmai/libatomic_ops.git /bdwgc/libatomic_ops
RUN cd /bdwgc && autoreconf -vif && automake --add-missing && ./configure && make && make check && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment