mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
Fixing bazel-based packaging of the CLI branding
Change-Id: I2a275a99d9a59ac4ac297e7cd445b11de63ca47b
This commit is contained in:
parent
25b785a91e
commit
8fcd204151
@ -37,7 +37,6 @@ genrule(
|
||||
tools = ["onos_stage.py"],
|
||||
)
|
||||
|
||||
# Generates auxiliary tar file with ONOS runtime tools
|
||||
filegroup(
|
||||
name = "onos-runtime-tools",
|
||||
srcs = glob(["runtime/bin/*"]),
|
||||
@ -53,6 +52,7 @@ genrule(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
# Generates the onos-test.tar.gz file with test tools
|
||||
genrule(
|
||||
name = "onos-package-test",
|
||||
srcs = ["//tools/dev:onos-test", "//tools/test:onos-test", ":onos-runtime-tools", "//:onos-env-defaults"],
|
||||
@ -62,18 +62,23 @@ genrule(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
# Runs ONOS as a single instance from the /tmp directory
|
||||
# FIXME: Still work in progress
|
||||
genrule(
|
||||
name = "onos-run",
|
||||
outs = ["onos-runner"],
|
||||
srcs = ["onos-run-karaf", "onos-package"],
|
||||
cmd = "sed \"s#ONOS_TAR=#ONOS_TAR=$(location :onos-package)#\" $(location onos-run-karaf) > $(location onos-runner); chmod +x $(location onos-runner)",
|
||||
executable = True,
|
||||
local = True,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
#staged_repos = ['$(location %s-repo)' % f for f in FEATURES]
|
||||
#staged_apps = ['$(location %s)' % a for a in APPS]
|
||||
#
|
||||
## feature_coords = 'foo:bar:1.3'
|
||||
#sources = [ '$(location :onos-features)', ]
|
||||
#sources += staged_repos + staged_apps
|
||||
#
|
||||
#genrule(
|
||||
# name = 'onos-run',
|
||||
# out = 'onos-run',
|
||||
# srcs = [ 'onos-run-karaf' ],
|
||||
# bash = 'sed "s#ONOS_TAR=#ONOS_TAR=$(location :onos-package)#" $SRCS > $OUT; chmod +x $OUT',
|
||||
# executable = True,
|
||||
# visibility = [ 'PUBLIC' ],
|
||||
#)
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
|
||||
java_library(
|
||||
name = "onos-tools-package-branding",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
name = "onos-tools-package-branding",
|
||||
resources = glob(["src/main/resources/**/*"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
@ -51,7 +51,7 @@ perl -pi.old -e "s|^(featuresBoot ?= ?).*|\1$BOOT_FEATURES|" \
|
||||
|
||||
|
||||
# Patch the Apache Karaf distribution with ONOS branding bundle
|
||||
cp $BRANDING $KARAF_DIR/lib
|
||||
cp $BRANDING $KARAF_DIR/lib/onos-tools-package-branding.jar
|
||||
|
||||
# **** Moving karaf to subdirectory ****
|
||||
mkdir $PREFIX
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user