2023-10-24 00:29:45 +02:00
|
|
|
FROM walkero/lha-on-docker as lha-image
|
2022-02-01 19:47:39 +01:00
|
|
|
# The ubuntu:latest tag points to the "latest LTS", since that's the version recommended for general use.
|
2022-02-01 20:33:48 +01:00
|
|
|
FROM ubuntu:latest
|
2022-02-01 19:47:39 +01:00
|
|
|
|
|
|
|
LABEL maintainer="Georgios Sokianos <walkero@gmail.com>"
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG REPOS_PATH
|
2023-10-24 00:29:45 +02:00
|
|
|
ARG CLIB2_REPO
|
|
|
|
COPY --from=lha-image /usr/bin/lha /usr/bin/lha
|
2022-02-01 19:47:39 +01:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get -y --no-install-recommends install \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
python2.7;
|
|
|
|
|
|
|
|
RUN ln -s /usr/bin/python2.7 /usr/bin/python; \
|
|
|
|
curl -fsSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o /tmp/get-pip.py && \
|
|
|
|
python get-pip.py && \
|
|
|
|
pip2 install --no-cache-dir argcomplete==1.12.3 mako; \
|
|
|
|
rm -rf /tmp/* /var/tmp/*;
|
|
|
|
|
|
|
|
RUN apt-get -y --no-install-recommends install \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
autopoint \
|
|
|
|
bison \
|
|
|
|
dh-autoreconf \
|
|
|
|
flex \
|
|
|
|
g++-8 \
|
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
gperf \
|
|
|
|
libgmp-dev \
|
|
|
|
libmpc3 \
|
|
|
|
libmpc-dev \
|
|
|
|
libtool \
|
|
|
|
make \
|
|
|
|
mc \
|
|
|
|
nano \
|
|
|
|
patch \
|
|
|
|
rsync \
|
|
|
|
texinfo \
|
|
|
|
wget \
|
|
|
|
xz-utils; \
|
|
|
|
ln -s /usr/bin/g++-8 /usr/bin/g++; \
|
|
|
|
rm /usr/bin/gcc; \
|
|
|
|
ln -s /usr/bin/gcc-8 /usr/bin/gcc; \
|
|
|
|
git config --global user.email "walkero@gmail.com"; \
|
|
|
|
git config --global user.name "Georgios Sokianos";
|
|
|
|
|
|
|
|
|
|
|
|
# Add necessary repos
|
|
|
|
ADD ${REPOS_PATH}/adtools /opt/adtools
|
|
|
|
ADD ${REPOS_PATH}/binutils-gdb /opt/adtools/binutils/repo
|
|
|
|
ADD ${REPOS_PATH}/coreutils /opt/adtools/coreutils/repo
|
|
|
|
ADD ${REPOS_PATH}/gnulib /opt/adtools/gnulib/repo
|
|
|
|
ADD build-gcc.sh /opt/adtools
|
|
|
|
|
|
|
|
ADD ${REPOS_PATH}/execsg_private_sdk /tmp/execsg_private_sdk
|
2022-02-02 14:28:18 +01:00
|
|
|
ADD ${REPOS_PATH}/newlib-53.77 /tmp/newlib
|
2022-02-01 19:47:39 +01:00
|
|
|
|
|
|
|
WORKDIR /opt/adtools
|
|
|
|
|
|
|
|
RUN git submodule init && \
|
|
|
|
git submodule update && \
|
|
|
|
chmod +x build-gcc.sh
|