mirror of
https://github.com/kanaka/mal.git
synced 2024-09-20 01:57:09 +03:00
8a19f60386
- Reorder README to have implementation list after "learning tool" bullet. - This also moves tests/ and libs/ into impls. It would be preferrable to have these directories at the top level. However, this causes difficulties with the wasm implementations which need pre-open directories and have trouble with paths starting with "../../". So in lieu of that, symlink those directories to the top-level. - Move the run_argv_test.sh script into the tests directory for general hygiene.
45 lines
1.3 KiB
Docker
45 lines
1.3 KiB
Docker
FROM ubuntu:xenial
|
|
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
|
|
##########################################################
|
|
|
|
# Swift
|
|
RUN apt-get -y install clang-3.6 cmake pkg-config \
|
|
git ninja-build uuid-dev libicu-dev icu-devtools \
|
|
libbsd-dev libedit-dev libxml2-dev libsqlite3-dev \
|
|
swig libpython-dev libncurses5-dev
|
|
|
|
# TODO: better way to do this?
|
|
RUN ln -sf /usr/lib/llvm-3.6/bin/clang++ /usr/bin/clang++
|
|
RUN ln -sf /usr/lib/llvm-3.6/bin/clang /usr/bin/clang
|
|
|
|
ENV SWIFT_PREFIX swift-5.1.1-RELEASE
|
|
ENV SWIFT_RELEASE ${SWIFT_PREFIX}-ubuntu16.04
|
|
|
|
RUN cd /opt && \
|
|
curl -O https://swift.org/builds/swift-5.1.1-release/ubuntu1604/${SWIFT_PREFIX}/${SWIFT_RELEASE}.tar.gz && \
|
|
tar xvzf ${SWIFT_RELEASE}.tar.gz && \
|
|
rm ${SWIFT_RELEASE}.tar.gz
|
|
|
|
ENV PATH /opt/${SWIFT_RELEASE}/usr/bin/:$PATH
|
|
|
|
|