From ba4861f963cfe1ba80b528ff47097da2354f5c29 Mon Sep 17 00:00:00 2001 From: Nicolas Boulenguez Date: Sun, 13 Oct 2024 15:01:06 +0200 Subject: [PATCH] UNTESTED io: update Docker, build the compiler and addons from source --- impls/io/Dockerfile | 24 ++++++++++++------------ impls/io/run | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/impls/io/Dockerfile b/impls/io/Dockerfile index beeb46b03c..5b56536caf 100644 --- a/impls/io/Dockerfile +++ b/impls/io/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:xenial +FROM ubuntu:24.04 MAINTAINER Joel Martin ########################################################## @@ -9,10 +9,8 @@ MAINTAINER Joel Martin 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 apt-get -y install make python3 +RUN ln -fs /usr/bin/python3 /usr/local/bin/python RUN mkdir -p /mal WORKDIR /mal @@ -21,13 +19,15 @@ WORKDIR /mal # Specific implementation requirements ########################################################## -# Zip -RUN apt-get -y install unzip +RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \ + cmake g++ git pkg-config libmarkdown2-dev -RUN cd /tmp && curl -O -J -L http://iobin.suspended-chord.info/linux/iobin-linux-x64-deb-current.zip \ - && unzip iobin-linux-x64-deb-current.zip IoLanguage-2013.11.04-Linux-x64.deb \ - && dpkg -i IoLanguage-2013.11.04-Linux-x64.deb \ - && ldconfig \ - && rm -f iobin-linux-x64-deb-current.zip IoLanguage-2013.11.04-Linux-x64.deb +RUN git clone --recursive https://github.com/IoLanguage/io.git /mal/io +RUN mkdir /mal/io/build +RUN cd /mal/io/build/ \ + && cmake .. -DCMAKE_BUILD_TYPE=release \ + && make \ + && make install \ + && PATH="$PATH:_build/binaries/" ./install_unix.sh ENV HOME /mal diff --git a/impls/io/run b/impls/io/run index 1c38be7185..1406baf62f 100755 --- a/impls/io/run +++ b/impls/io/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Io prints the line "Registering Regex: Regex" when loading the Regex module # for the first time, and there's no way to suppress it. To avoid polluting