FROM ubuntu:focal

LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/build-env-msp430"
LABEL AlternativeImageName="wollud1969/build-env-msp430"

ARG RELEASETOOL_URL="https://home.hottis.de/gitlab/wolutator/gitlabreleaseuploader/uploads/25ef4a3247a99a0dbaf6507dd9cba36e/GitlabReleaseTool.zip"


RUN \
  apt update && \
  apt install -y make && \
  apt install -y openssh-client && \
  apt install -y git && \
  apt install -y python && \
  apt install -y python-requests && \
  apt install -y python-pycodestyle && \
  apt install -y python-yaml && \
  apt install -y gpg && \
  apt install -y apt-transport-https && \
  apt install -y wget && \
  apt install -y curl && \
  apt install -y unzip && \
  apt install -y zip && \
  apt install -y vim.tiny && \
  apt install -y msp430-libc && \
  apt install -y binutils-msp430 && \
  apt install -y gcc-msp430 && \
  cd /tmp && \
  wget $RELEASETOOL_URL && \
  unzip GitlabReleaseTool.zip && \
  chmod 755 gitlabreleaseuploader.py && \
  chmod 755 deleterelease.py && \
  mv gitlabreleaseuploader.py /usr/bin && \
  mv deleterelease.py /usr/bin