-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (32 loc) · 1.33 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
35
36
37
38
39
40
41
FROM openfrontier/jenkins-swarm-maven-slave
MAINTAINER zsx <thinkernel@gmail.com>
ENV SENCHA_HOME /opt/Sencha
ENV SENCHA_CMD_VERSION 5.0.3.324
ENV SENCHA_CMD_HOME ${SENCHA_HOME}/Cmd/${SENCHA_CMD_VERSION}
ENV PATH ${SENCHA_CMD_HOME}:${PATH}
ENV EXT_VERSION 5.0.1
ENV EXT_HOME ${SENCHA_HOME}/ext-${EXT_VERSION}
USER root
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ruby \
&& rm -rf /var/lib/apt/lists/*
# Install sencha-cmd
RUN curl -o /cmd.run.zip http://cdn.sencha.com/cmd/${SENCHA_CMD_VERSION}/SenchaCmd-${SENCHA_CMD_VERSION}-linux-x64.run.zip && \
unzip -p /cmd.run.zip > /cmd-install.run && \
chmod +x /cmd-install.run && \
/cmd-install.run --mode unattended --prefix /opt && \
rm /cmd-install.run /cmd.run.zip
# Switch extjs codegen repo location
RUN sed -i "s#^repo.local.dir=.*#repo.local.dir=/home/jenkins/sencha-repo#g" ${SENCHA_CMD_HOME}/sencha.cfg
# Install extJS
RUN curl -o /ext-gpl.zip http://cdn.sencha.com/ext/gpl/ext-${EXT_VERSION}-gpl.zip && \
unzip -q -d ${SENCHA_HOME} /ext-gpl.zip && \
rm /ext-gpl.zip
# Add nodeJS
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
nodejs \
&& rm -rf /var/lib/apt/lists/*
USER "${JENKINS_USER}"