-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
27 lines (18 loc) · 981 Bytes
/
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
FROM jenkins:latest
MAINTAINER Cormac Cannon <[email protected]>
USER root
RUN apt-get update && apt-get install -y ruby gcc-multilib git build-essential bzip2 cpio curl python unzip wget
#Ceedling for TDD -- see http://www.throwtheswitch.org/
RUN gem install rake ceedling
#Download and install Microchip XC16 compiler (nicked wholesale from https://github.com/mmitchel/docker-xc16 -- thanks!)
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 --prefix /opt/microchip/xc16 \
&& rm /tmp/xc16.run
#Install an editor
RUN apt-get install -y nano vim
#Restore jenkins user... user is defined in the jenkins:latest Dockerfile from which this is derived, but doesn't appear to be available here
#USER ${user}
USER jenkins
ENV PATH $PATH:/opt/microchip/xc16/bin