2020-01-12 14:33:08 +03:00
|
|
|
FROM ubuntu:bionic
|
|
|
|
MAINTAINER Joel Martin <github@martintribe.org>
|
2020-01-10 09:08:30 +03:00
|
|
|
|
2020-01-12 14:33:08 +03:00
|
|
|
##########################################################
|
|
|
|
# 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 libpcre3-dev
|
2020-01-10 09:25:03 +03:00
|
|
|
|
2020-01-10 09:08:30 +03:00
|
|
|
RUN mkdir -p /mal
|
|
|
|
WORKDIR /mal
|
|
|
|
|
2020-01-12 14:33:08 +03:00
|
|
|
#########################################################
|
|
|
|
# Specific implementation requirements
|
|
|
|
#########################################################
|
|
|
|
|
|
|
|
RUN apt-get -y install python3.8 wget
|
|
|
|
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 10
|
|
|
|
|
|
|
|
# grab jq 1.6 from github releases
|
|
|
|
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
2020-01-10 10:14:35 +03:00
|
|
|
|
2020-01-12 14:33:08 +03:00
|
|
|
RUN chmod +x jq-linux64
|
|
|
|
# a bit ugly, but it'll do?
|
|
|
|
RUN mv jq-linux64 /usr/bin/jq
|