Dockerfile 2.98 KiB
# Fetch latest ubuntu layer
FROM wslph/ubuntu:jammy-latest
MAINTAINER Reynold E. Lariza <rey.lariza@capgemini.com>
COPY assets/resources/ /opt/
# Download the specific JAVA version AdoptOpenJDK 1.8.0_252 ## jdk8u252-b09
RUN wget https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u252b09.tar.gz -O /opt/OpenJDK8U-jdk_x64_linux_hotspot_8u252b09.tar.gz
RUN mkdir /usr/lib/jvm
RUN tar -zxf /opt/OpenJDK8U-jdk_x64_linux_hotspot_8u252b09.tar.gz -C /usr/lib/jvm
RUN rm -rf /opt/OpenJDK8U-jdk_x64_linux_hotspot_8u252b09.tar.gz
RUN update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk8u252-b09/bin/java 100
RUN update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk8u252-b09/bin/javac 100
RUN update-alternatives --display java
RUN update-alternatives --display javac
RUN java -version
# Define environment variables.
ENV MULE_HOME /opt/mule
# set the default environment
ENV MULE_ENV dev
# set the the app config to empty, to use /opt/mule/conf
ENV APP_CONFIG_PATH=
# set custom mule startup environment config
ENV MULE_STARTUP_ENV_CONFIG=
# use the default app, domain, and conf. 0 by default, Set this to 1 to override and use the external files.
ENV MULE_ENV_OVERRIDE_DEFAULT 0
# 0 means will not override, otherwise, it will be updated
ENV MULE_AGENT_OVERRIDE 0
ENV MULE_AGENT_UPDATE_URL=http://s3.amazonaws.com/mule-agent
ENV MULE_ARM_TOKEN=
# this will be used both by AMC and MMC for naming your Mule ESB.
ENV MULE_ESB_NAME=
# set the MMC environment variable
# e.g., http://mmc-host or https://mmc-host <-- /api/ wil be appended to target the MMC server
ENV MULE_MMC_URL= 
# Pass the authentication header (default value is Authorization:Basic YWRtaW46YWRtaW4=), which is the 
# encoded version of credential (admin/admin)
# this will be used first when specified, otherwise it will attempt to use the env variables (MULE_MMC_USERNAME, and MULE_MMC_PASSWORD) 
# for authentication
ENV MULE_MMC_HEADER_AUTH=
# or you can  pass the credentials
ENV MULE_MMC_USERNAME=
ENV MULE_MMC_PASSWORD=
# set the target server group name (e.g., Testing, Development, etc.)
# if this does not exist yet, it will be created if it does not exist yet.
ENV MULE_MMC_SERVER_GROUP=
# this is the hostname or IP address for http://<mmc-host>:<mmc-port>/mmc-support
ENV MULE_MMC_AGENT_HOST=
# specify custom script
ENV CUSTOM_SCRIPT=
# set timezone (e.g., Asia/Manila, Asia/Singapore)
ENV TIMEZONE=Australia/Melbourne
7172737475767778798081828384858687888990919293
# fetch mule esb runtime RUN chmod 755 /opt/set-mule-repo.sh RUN /opt/set-mule-repo.sh # Define mount points. VOLUME ["/opt/mule/logs", "/opt/mule/apps", "/opt/mule/domains", "/opt/mule/conf", "/opt/mule/patches", "/opt/mule/plugins", "/opt/mule/server-plugins", "/opt/mule/policies"] # Define working directory. WORKDIR /opt/mule # Configure (default ports) external access: # Mule remote debugger EXPOSE 5000 # Mule JMX port (must match Mule config file) EXPOSE 1099 # Expose Jolokia port. EXPOSE 8899 CMD [ "/opt/mule/bin/mule-start.sh" ]