Skip to content

updated Dockerfile to build successfully by using gcc-5+ #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions tools/vw-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ RUN yum install -y \
zlib-devel \
which

RUN yum group install -y "Development Tools"
# need to install gcc-5+ for codecvt
RUN yum install -y centos-release-scl
RUN yum install -y devtoolset-7

RUN git clone https://github.com/JohnLangford/vowpal_wabbit.git
RUN cd vowpal_wabbit/
WORKDIR /vowpal_wabbit
RUN sh autogen.sh
RUN ./configure
RUN make
RUN make install

# need to be using gcc-5+ before running make
RUN source scl_source enable devtoolset-7 &&\
sh autogen.sh &&\
./configure &&\
make &&\
make install

WORKDIR /

Expand Down