mirror of
https://github.com/kanaka/mal.git
synced 2024-09-21 10:37:58 +03:00
a0e89ae42a
- Fix rust Dockerfile working dir. - Make top-level Makefile more generic. This makes it easier to use the Makefile with fewer changes in miniMAL. - Simplify vhdl build when case is fixed in stepA_mal - Remove BUILD_IMPL=js from miniMAL travis test. Just use a docker image specifically made for miniMAL. - Update TODO
40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
FROM ubuntu:vivid
|
|
MAINTAINER Joel Martin <github@martintribe.org>
|
|
|
|
##########################################################
|
|
# General requirements for testing or common across many
|
|
# implementations
|
|
##########################################################
|
|
|
|
RUN apt-get -y update
|
|
|
|
# Required for running tests
|
|
RUN apt-get -y install make python
|
|
|
|
# Some typical implementation and test requirements
|
|
RUN apt-get -y install curl libreadline-dev libedit-dev
|
|
|
|
RUN mkdir -p /mal
|
|
WORKDIR /mal
|
|
|
|
##########################################################
|
|
# Specific implementation requirements
|
|
##########################################################
|
|
|
|
# Install g++ for any C/C++ based implementations
|
|
RUN apt-get -y install g++
|
|
|
|
# Based on https://github.com/Scorpil/docker-rust/blob/master/stable/Dockerfile
|
|
|
|
ENV RUST_ARCHIVE=rust-1.14.0-x86_64-unknown-linux-gnu.tar.gz
|
|
ENV RUST_DOWNLOAD_URL=https://static.rust-lang.org/dist/$RUST_ARCHIVE
|
|
|
|
RUN mkdir -p /rust && cd /rust \
|
|
&& curl -fsOSL $RUST_DOWNLOAD_URL \
|
|
&& curl -s $RUST_DOWNLOAD_URL.sha256 | sha256sum -c - \
|
|
&& tar -C /rust -xzf $RUST_ARCHIVE --strip-components=1 \
|
|
&& rm $RUST_ARCHIVE \
|
|
&& ./install.sh
|
|
|
|
ENV CARGO_HOME /mal/.cargo
|