Hi

If you look at startODL.sh – that is the entry point for APPC docker.

startODL.sh triggers dockerInstall.sh. dockerInstall.sh would run 
installFeature.sh.

installFeature.sh contains to install all APPC specific APPC karaf features and 
bundles.

I am not sure your proposal would work if you have your own features. You would 
need to look at installFeaure.sh to see if your new feature can be included in 
installFeature.sh.

Taka Cho
APPC PTL

From: [email protected] <[email protected]> On Behalf Of 
zychen
Sent: Monday, December 30, 2019 2:46 AM
To: [email protected]
Subject: [onap-discuss] #appc Query about building APPC docker image 
individually

Hi,

I implemented some northbound APIs in original APPC, passed Maven build. When I 
try to build docker image via Dockerfile, I noticed some 'COPY' is unclear.

COPY --chown=odl:odl opt /opt

COPY --chown=odl:odl featureDir /opt/onap/appc/features

COPY --chown=odl:odl repoDir /opt/opendaylight

According to nexus3.onap.org:10001/onap/appc-image:1.6.3, I am not sure about 
what is in opt folder. And featureDir contains 'install-features.sh' for each 
feature, repoDir looks like an unzip OpenDaylight distribution.

I consider feature install scripts and OpenDaylight distribution are steady. I 
might collect those manually and upload to Nexus, then execute below commands 
in Dockerfile:

'
RUN wget -q http://[Nexus_IP]:8090/ 
[featureDir.zip<https://urldefense.proofpoint.com/v2/url?u=http-3A__-5BNexus-5FIP-5D-3A8090_-5BfeatureDir.zip&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=i5VHNTZ3SDPgIii87sudZA&m=9FN94DJ5OQLZ8SpRTrE7POFSi4x2RYiprisBtpAdMD4&s=ewwa-cQT3y8nMSnTevkx1X3aqG7FDEbN1tLT9O-a1Js&e=>]
 && \
    unzip featureDir.zip && \
    rm featureDir.zip && \
    mv featureDir /opt/onap/appc/features

RUN wget -q http://[Nexus_IP]:8090/ 
[repoDir.zip<https://urldefense.proofpoint.com/v2/url?u=http-3A__-5Bnexus-5Fip-5D-3A8090_-5BfeatureDir.zip&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=i5VHNTZ3SDPgIii87sudZA&m=9FN94DJ5OQLZ8SpRTrE7POFSi4x2RYiprisBtpAdMD4&s=p_CCzi3GoZFAU7B8ZFlHAg6kxbATS_iB84xwCXoi3g8&e=>]
 && \
    unzip repoDir.zip && \
    rm repoDir.zip && \
    mv repoDir /opt/opendaylight
'
Would it work? Or any better ideas would be greatly appreciate!

Thanks,
Zhuangyang


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#19704): https://lists.onap.org/g/onap-discuss/message/19704
Mute This Topic: https://lists.onap.org/mt/69328243/21656
Mute #appc: https://lists.onap.org/mk?hashtag=appc&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to