# See the License for the specific language governing permissions and
# limitations under the License.
+.PHONY: help parents features-wt features-odlux dist all
+
## help: Show the help.
-.PHONY: help
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@fgrep "##" Makefile | fgrep -v fgrep | sed 's/##/ -/g'
+## parents: Build parents
+parents:
+ mvn clean install -f parents/pom.xml -s settings.xml
+
+## features-wt: Build wt features
+features-wt:
+ mvn clean install -f features/sdnr/wt/pom.xml -s settings.xml
-## feature: Build all features
-.PHONY: feature
-feature:
- mvn clean install -f parents/pom.xml
- mvn clean install -f features/sdnr/wt/pom.xml
- mvn clean install -f features/sdnr/odlux/pom.xml
+## features-odlux: Build odlux features
+features-odlux:
+ mvn clean install -f features/sdnr/odlux/pom.xml -s settings.xml
## dist: Build images
-.PHONY: dist
dist:
- mvn clean install -f distribution/oam-controller/pom.xml
- mvn clean install -f distribution/oam-controller-web/pom.xml
+ mvn clean install -f distribution/oam-controller/pom.xml -s settings.xml
+ mvn clean install -f distribution/oam-controller-web/pom.xml -s settings.xml
## all: Build features and images
-.PHONY: all
-all: feature dist
\ No newline at end of file
+all: parents features-wt features-odlux dist
- GERRIT_PROJECT needs special handling due to the repo naming convention
- Test commit to check GHA triggering
- Test commit to check GHA triggering
+- Test commit to check GHA triggering
<description>Creates SDN Controller WebUI Docker container</description>
<properties>
- <base.image.repo>docker.io/bitnami/nginx:1.21-debian-10</base.image.repo>
+ <base.image.repo>docker.io/bitnami/nginx:1.25-debian-12</base.image.repo>
<image.name>o-ran-sc/sdnc-web-image</image.name>
<sdnc.project.version>${project.version}</sdnc.project.version>
<ccsdk.features.version>1.7.0-SNAPSHOT</ccsdk.features.version>
# Enable wheel group
RUN sed -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' -i /etc/sudoers
# Create odl user
-RUN addgroup -S odl && adduser -S odl -G odl
-RUN addgroup odl wheel
+RUN addgroup -S odl && adduser -S odl -G odl && addgroup odl wheel
+#RUN addgroup odl wheel
# copy ODL
COPY --chown=odl:odl odl/karaf-${odl.karaf.version} $ODL_HOME
#COPY --chown=odl:odl frinx/org/opendaylight/netconf $ODL_HOME/system/org/opendaylight/netconf/
COPY --chown=odl:odl system/org/apache/kafka $ODL_HOME/system/org/apache/kafka
+RUN true
COPY --chown=odl:odl system/com/github/luben $ODL_HOME/system/com/github/luben
+RUN true
COPY --chown=odl:odl system/org/lz4 $ODL_HOME/system/org/lz4
+RUN true
COPY --chown=odl:odl system/org/xerial/snappy $ODL_HOME/system/org/xerial/snappy
# Patch WT Apps
#RUN rm -r $ODL_HOME/$FEATURES_SDNR
#COPY --chown=odl:odl $FEATURES_SDNR $ODL_HOME/$FEATURES_SDNR
# Copy scripts
+RUN true
COPY --from=stage0 --chown=odl:odl /opt/onap /opt/onap
+RUN true
COPY --chown=odl:odl scripts/startODL.sh /opt/onap/sdnc/bin/
+RUN true
COPY --chown=odl:odl scripts/installCerts.py /opt/onap/sdnc/bin/
# Copy repository
# visualVM configuration
+RUN true
COPY --chown=odl:odl etc $ODL_HOME/etc
-# copy bash init script into container
-COPY --chown=odl:odl scripts/.bashrc /home/odl/
#Adjust repositories
RUN sed -i -e "\|featuresRepositories|s|$|, ${SDNR_DM_REPO}|" $ODL_HOME/etc/org.apache.karaf.features.cfg