本文介绍了Dockerfiles在容器中运行AEM子系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我是Docker的新手,我想知道如何下载cq-quickstart-6.1.0-SNAPSHOT.jar文件。在构建应用程序时,我面临同样的jar文件问题。



如果我能够了解如何访问和配置存储库,这将是非常好的从git与docker开始到结束。

解决方案

如:

Adob​​e体验管理器(AEM)软件包有两种形式:

一旦你下载了它,你可以在Dockerfile中使用它,类似于:

  FROM dockerfile / java:oracle-java7 

RUN mkdir / opt / aem /

WORKDIR / opt / aem /

ADD〜/ Documents / demo / 6.0 / cq-quickstart-6.0.jar / opt / aem / cq- quickstart-6.0.jar
ADD〜/ Documents / demo / 6.0 / license.properties /opt/aem/license.properties

运行java -jar cq-quickstart-6.0.jar -unpack -v

运行mkdir /opt/aem/jacoco-0.7.1.201405082137

ADD〜/ Documents / demo / jacoco-0.7.1.201405082137.zip \
/opt/aem/jacoco-0.7.1.201405082137/jacoco-0.7.1.201405082137.zip

RUN解压jacoco-0.7.1.201405082137 / jacoco-0.7.1.201405082137.zip \
lib / * \
-d jacoco-0.7.1.201405082137 /

ENV CQ_FOREGROUND y
ENV CQ_VERBOSE y
ENV CQ_NOBROWSER y
ENV CQ_RUNMODEdev,author,nosamplecontent
ENV CQ_JVM_OPTS-server -Xmx1524M -Xms512M -XX:MaxPermSize = 512M \
-javaagent:/opt/aem/jacoco-0.7.1.201405082137/lib/org.jacoco.agent-0.7.1.201405082137.jar=output=tcpserver,port=6300


CMD crx-quickstart / bin / quickstart


As i am new to docker, i want to know how one can download cq-quickstart-6.1.0-SNAPSHOT.jar file. I am facing problem regards the same jar file at the time of building application.

It will be great, if i can get to know about how one can access and configure repository from git with docker start to end.

解决方案

As mentioned in the AEM 6.1 / "Deploying and Maintaining" doc:

The Adobe Experience Manager(AEM) software package is available in two forms:

Once you have downloaded it, you can use it in a Dockerfile similar to the one presented in "in-container testing for AEM with docker/":

FROM dockerfile/java:oracle-java7

RUN mkdir /opt/aem/

WORKDIR /opt/aem/

ADD ~/Documents/demo/6.0/cq-quickstart-6.0.jar /opt/aem/cq-quickstart-6.0.jar
ADD ~/Documents/demo/6.0/license.properties /opt/aem/license.properties

RUN java -jar cq-quickstart-6.0.jar -unpack -v

RUN mkdir /opt/aem/jacoco-0.7.1.201405082137

ADD ~/Documents/demo/jacoco-0.7.1.201405082137.zip \
    /opt/aem/jacoco-0.7.1.201405082137/jacoco-0.7.1.201405082137.zip

RUN unzip jacoco-0.7.1.201405082137/jacoco-0.7.1.201405082137.zip \
          lib/* \
          -d jacoco-0.7.1.201405082137/

ENV CQ_FOREGROUND y
ENV CQ_VERBOSE    y
ENV CQ_NOBROWSER  y
ENV CQ_RUNMODE    "dev,author,nosamplecontent"
ENV CQ_JVM_OPTS   "-server -Xmx1524M -Xms512M -XX:MaxPermSize=512M \
                   -javaagent:/opt/aem/jacoco-0.7.1.201405082137/lib/org.jacoco.agent-0.7.1.201405082137.jar=output=tcpserver,port=6300"


CMD crx-quickstart/bin/quickstart

这篇关于Dockerfiles在容器中运行AEM子系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 20:10