forked from bbinet/docker-mplabx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:jessie
MAINTAINER Bruno Binet <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Microchip tools require i386 compatability libs
RUN dpkg --add-architecture i386 \
&& apt-get update -yq \
&& apt-get install -yq --no-install-recommends curl libc6:i386 \
libx11-6:i386 libxext6:i386 libstdc++6:i386 libexpat1:i386 \
libxext6 libxrender1 libxtst6 libgtk2.0-0 libxslt1.1
# Download and install XC16 compiler
RUN curl -fSL -A "Mozilla/4.0" -o /tmp/xc16.run "http://www.microchip.com/mplabxc16linux" \
&& chmod a+x /tmp/xc16.run \
&& /tmp/xc16.run --mode unattended --unattendedmodeui none \
--netservername localhost --LicenseType FreeMode \
&& rm /tmp/xc16.run
ENV PATH /opt/microchip/xc16/v1.25/bin:$PATH
ENV MPLABX_VERSION 3.20
# Download and install MPLAB X IDE
# Use url: http://www.microchip.com/mplabx-ide-linux-installer to get the latest version
RUN curl -fSL -A "Mozilla/4.0" -o /tmp/mplabx-installer.tar "http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v${MPLABX_VERSION}-linux-installer.tar" \
&& tar xf /tmp/mplabx-installer.tar && rm /tmp/mplabx-installer.tar \
&& USER=root ./MPLABX-v${MPLABX_VERSION}-linux-installer.sh --nox11 \
-- --unattendedmodeui none --mode unattended \
&& rm ./MPLABX-v${MPLABX_VERSION}-linux-installer.sh
VOLUME ["/tmp/.X11-unix"]
CMD ["/usr/bin/mplab_ide"]