User Tools

Site Tools


informatica:linux:docker:weblogic

This is an old revision of the document!


Creamos el binario con la instalación de weblogic:

Dockerfile

FROM oraclelinux
MAINTAINER Jose Legido "jose@legido.com"

ARG ORACLE_USER
ARG ORACLE_PASSWORD

# USUARIS
RUN groupadd -g 1001 weblogic && useradd -u 1001 -g weblogic weblogic
RUN mkdir -p /u01/install && mkdir -p /u01/scripts

# EINES
RUN yum install -y tar

COPY scrics/install_weblogic1036.sh /u01/install/install_weblogic1036.sh
COPY scrics/template1036.jar /u01/install/template1036.jar
RUN chown -R weblogic. /u01
RUN chmod +x /u01/install/install_weblogic1036.sh

USER weblogic

ENV USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom"

RUN cd /u01/install && /u01/install/install_weblogic1036.sh $ORACLE_USER $ORACLE_PASSWORD

RUN /bin/bash

Creamos una imagen llamada local/weblogic1036bin que será la base para nuestras instalaciones

docker build --build-arg ORACLE_USER=<usuario oracle> --build-arg ORACLE_PASSWORD=<pass oracle> -t local/weblogic1036bin .

Arrancar AdminServer y configurar dominio

source /u01/middleware1036/wlserver_10.3/server/bin/setWLSEnv.sh
java weblogic.WLST
startServer(adminServerName='AdminServer',domainName='mydomain',url='t3://localhost:7001',username='weblogic',password='weblogic01',domainDir='/u01/domains/mydomain',jvmArgs='-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m')

createDomain(“/u01/middleware1036/wlserver_10.3/common/templates/domains/wls.jar”,“/u01/domains/probando”,“weblogic”,“dadada01”)

createDomain(“/u01/nou.jar”,“/u01/domains/prueba2”,“weblogic”,“dadada01”)

readTemplate('/u01/wls.jar')

create(“managed01”,'Server')

/u01/middleware1036/wlserver_10.3/common/templates/domains/wls.jar

startServer(adminServerName='AdminServer',domainName='prueba2',url='t3:localhost:7001',username='weblogic',password='dadada01',domainDir='/u01/domains/prueba2',jvmArgs='-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m')

informatica/linux/docker/weblogic.1482597298.txt.gz · Last modified: 2016/12/24 16:34 by jose