-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
44 lines (32 loc) · 1.37 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
42
43
44
# echarish/mule-s2i-image
FROM openshift/base-centos7
FROM java:8
MAINTAINER HARISH KUMAR <echarish@gmail.com >
ENV MULE_VERSION 3.9.0
ENV GRADLE_VERSION=4.0.1
WORKDIR /opt
RUN wget https://s3.amazonaws.com/new-mule-artifacts/mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz && \
tar xvzf mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz && \
rm -rf mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz && \
mv /opt/mule-enterprise-standalone-${MULE_VERSION} /opt/mule
# Install Gradle
RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip && \
mkdir /opt/gradle && \
unzip -d /opt/gradle gradle-${GRADLE_VERSION}-bin.zip && \
rm gradle-${GRADLE_VERSION}-bin.zip && \
ln -s /opt/gradle/gradle-${GRADLE_VERSION}/bin/gradle /usr/local/bin/gradle
LABEL io.k8s.description="Platform for building Mule ${MULE_VERSION} CE applications" \
io.k8s.display-name="Mule ${MULE_VERSION} builder 1.0" \
io.openshift.expose-services="8081:http" \
io.openshift.tags="builder,gradle,mule-${MULE_VERSION}"
LABEL io.openshift.s2i.scripts-url=image:///usr/libexec/s2i
COPY ./s2i/bin/ /usr/libexec/s2i
RUN chmod -R 777 /usr/libexec/s2i
RUN chown -R 1001:1001 /opt && chmod -R 777 /opt
# default user
USER 1001
# Set the default port for applications HTTP and event bus
# Mule App port
EXPOSE 8081
# Mule MMC port
EXPOSE 7777