I'm trying to add myfaces support to the wildfly 9.0.2 docker images so I'm using your recipe
I have tried compile the install-myfaces-2.2.9.cli on my linux box and addinig to the image with no success.
# Mark the commands below to be run as a batch
batch
# Deploy the cli package
deploy wildfly/myfaces/install-myfaces-2.2.9.cli
# Set myfaces as default JSF implementation
/subsystem=jsf/:write-attribute(name=default-jsf-impl-slot,value=myfaces-2.2.9)
# Execute the batch
run-batch
FROM jboss/wildfly
...
ADD myfaces /opt/jboss/wildfly/myfaces/
USER root
RUN mkdir -p /opt/jboss/wildfly/modules/com/sun/jsf-impl/myfaces-2.2.9
USER jboss
RUN /opt/jboss/wildfly/myfaces/install_myfaces.sh
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
Failed to add to batch 'deploy wildfly/myfaces/install-myfaces-2.2.9.cli': Module com.sun.jsf-impl already exists at /opt/jboss/wildfly/modules/com/sun/jsf-impl/myfaces-2.2.9: Module com.sun.jsf-impl already exists at /opt/jboss/wildfly/modules/com/sun/jsf-impl/myfaces-2.2.9