Created
November 30, 2017 07:21
-
-
Save sdeepaks/93b0cdd764df4c0e9afe24432632f68f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Base Image | |
FROM java:openjdk-8-jdk | |
MAINTAINER Name deepakkushwaha413@gmail.com | |
#this will download mule-ee to the opt direcotry | |
ADD http://s3.amazonaws.com/new-mule-artifacts/mule-ee-distribution-standalone-3.8.4.tar.gz /opt/ | |
#Setting current working directory to opt. | |
WORKDIR /opt | |
#Extract recently downloaded tar file. | |
RUN tar -xzvf /opt/mule-ee-distribution-standalone-3.8.4.tar.gz | |
#removing tar file after extraction for saving space. | |
RUN rm /opt/mule-ee-distribution-standalone-3.8.4.tar.gz | |
#linking mule home to a user friendly name | |
RUN ln -s mule-enterprise-standalone-3.8.4 /opt/mule | |
# Environment and execution: | |
ENV MULE_BASE /opt/mule | |
WORKDIR /opt/mule-enterprise-standalone-3.8.4 | |
CMD ["/opt/mule/bin/mule"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" | |
xmlns:spring="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | |
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> | |
<flow name="hello-worldFlow"> | |
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/> | |
<set-payload value="Hello from docker !! #[server.dateTime]" doc:name="Set Payload"/> | |
</flow> | |
</mule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment