Sign inSign up

omack/centos-webassem

By omack

•Updated over 7 years ago

Centos - March 8 2018 - with WebAssembly and Rust

Image
0

10K+

omack/centos-webassem repository overview

Used the Octopus build as a start

#https://github.com/luntergroup/octopus/issues/20⁠

⁠Dockerfile to install webAssembly, Rust and other library compontents.

⁠The image is 13GB at this point

FROM centos:latest

⁠Install all packaged dependencies

RUN yum -y update RUN yum -y install
which
yum-utils
gcc
gcc-c++
make
wget
git
autoconf
openssl
bzip2.x86_64
bzip2-devel.x86_64
xz-devel.x86_64
zlib-devel.x86_64
libcurl-devel.x86_64

⁠Install GCC 7

WORKDIR /tmp RUN wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.gz RUN tar -xvzf gcc-7.2.0.tar.gz WORKDIR /tmp/gcc-7.2.0 RUN contrib/download_prerequisites WORKDIR /tmp RUN mkdir mkdir gcc-7.2.0-build WORKDIR /tmp/gcc-7.2.0-build RUN ../gcc-7.2.0/configure
--enable-bootstrap
--enable-languages=c,c++,fortran,lto
--with-bugurl=http://bugzilla.redhat.com/bugzilla⁠
--enable-shared
--enable-threads=posix
--enable-checking=release
--disable-multilib
--with-system-zlib
--enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-gnu-unique-object
--enable-linker-build-id
--with-gcc-major-version-only
--enable-plugin
--with-linker-hash-style=gnu
--enable-initfini-array
--enable-libmpx
--enable-gnu-indirect-function
--with-tune=generic
--build=x86_64-redhat-linux RUN make -j4 RUN make install ENV LD_LIBRARY_PATH /usr/local/lib:/usr/local/lib64

⁠Install Python3

WORKDIR /tmp RUN yum-builddep -y python RUN curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz⁠ RUN tar xf Python-3.5.0.tgz WORKDIR /tmp/Python-3.5.0 RUN ./configure RUN make -j2 RUN make install

⁠Install CMake

WORKDIR /tmp RUN wget https://cmake.org/files/v3.9/cmake-3.9.6.tar.gz⁠ RUN tar -xzvf cmake-3.9.6.tar.gz WORKDIR /tmp/cmake-3.9.6 RUN ./bootstrap --prefix=/usr/local RUN make -j2 RUN make install

Tag summary

Content type

Image

Digest

Size

4.2 GB

Last updated

over 7 years ago

docker pull omack/centos-webassem