1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

change Dockerfile to build on top of ubuntu:bionic

This commit is contained in:
AnotherTest 2020-01-12 15:03:08 +03:30
parent 2ce3c78e54
commit 989b1e6e00
2 changed files with 27 additions and 9 deletions

View File

@ -1,14 +1,32 @@
FROM archlinux/base
MAINTAINER Ali MohammadPur <devanothertest@gmail.com>
FROM ubuntu:bionic
MAINTAINER Joel Martin <github@martintribe.org>
# General test requirements
RUN pacman -Sy
RUN pacman -S --noconfirm python make
RUN pacman -S --noconfirm curl
##########################################################
# 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
RUN mkdir -p /mal
WORKDIR /mal
# test requirements
RUN pacman -S --noconfirm jq pv coreutils
#########################################################
# 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
RUN chmod +x jq-linux64
# a bit ugly, but it'll do?
RUN mv jq-linux64 /usr/bin/jq

2
jq/run
View File

@ -1,3 +1,3 @@
#!/bin/env bash
#!/bin/sh
exec python rts.py "${@}"