command
module
Version:
v0.0.0-...-6339223
Opens a new window with list of versions in this module.
Published: Oct 12, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
dashboard
Prerequisites
Develop
Prerequisite software
The following software programs need to be installed:
- git
- make
- docker
Clone repository
-
Set these environment variable values:
export GIT_ACCOUNT=docktermj
export GIT_REPOSITORY=dashboard
export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Follow steps in clone-repository to install the Git repository.
Local development
-
Run code.
Example:
cd ${GIT_REPOSITORY_DIR}
make run
Local web development
-
To view the user interface,
with no underlying enablement.
Example:
docker run \
--publish 8259:80 \
--rm \
--volume ${GIT_REPOSITORY_DIR}/dashboard/static:/usr/share/nginx/html:ro \
nginx
Visit localhost:8259
Build binary
-
Build binary.
Example:
cd ${GIT_REPOSITORY_DIR}
make build
-
Run binary.
Example:
${GIT_REPOSITORY_DIR}/target/linux/dashboard --help
-
Run service.
Example:
cd ${GIT_REPOSITORY_DIR}
./target/linux/dashboard
Visit localhost:8259
Package
Package RPM and DEB files
-
Use make target to run a docker images that builds RPM and DEB files.
Example:
cd ${GIT_REPOSITORY_DIR}
make package
-
The results will be in the ${GIT_REPOSITORY_DIR}/target
directory.
Example:
tree ${GIT_REPOSITORY_DIR}/target
Test DEB package on Ubuntu
-
Determine if dashboard
is installed.
Example:
apt list --installed | grep dashboard
-
✏ Install dashboard
.
Example:
cd ${GIT_REPOSITORY_DIR}/target
sudo apt install ./dashboard-0.0.0.deb
-
Run command.
Example:
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/
dashboard
Visit localhost:8259
-
Remove dashboard
from system.
Example:
sudo apt-get remove dashboard
Test RPM package on Centos
-
Determine if dashboard
is installed.
Example:
yum list installed | grep dashboard
-
✏ Install dashboard
.
Example:
cd ${GIT_REPOSITORY_DIR}/target
sudo yum install ./dashboard-0.0.0.rpm
-
Run command.
Example:
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/
dashboard
-
Remove dashboard
from system.
Example:
sudo yum remove dashboard
Make documents
Make documents visible at
hub.senzing.com/dashboard.
-
Identify repository.
Example:
export GIT_ACCOUNT=senzing
export GIT_REPOSITORY=dashboard
export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Make documents.
Example:
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/
dashboard docs --dir ${GIT_REPOSITORY_DIR}/docs
How to update static files
-
Set these environment variable values:
export GIT_ACCOUNT=docktermj
export GIT_REPOSITORY=dashboard
export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Bootstrap (with Popper).
Example:
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/css/bootstrap.min.css \
https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/css/bootstrap.min.css.map \
https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css.map
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/js/bootstrap.bundle.min.js \
https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js
-
JQuery.
Example:
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/js/jquery.min.js \
https://code.jquery.com/jquery-3.6.3.min.js
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/css/jquery.dataTables.min.css \
https://cdn.datatables.net/1.13.1/css/jquery.dataTables.min.css
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/js/jquery.dataTables.min.js \
https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js
-
Dashboard.
Example:
export BOOTSTRAP_VERSION=5.2.3
wget \
--output-document /tmp/bootstrap-${BOOTSTRAP_VERSION}-examples.zip \
https://github.com/twbs/bootstrap/releases/download/v${BOOTSTRAP_VERSION}/bootstrap-${BOOTSTRAP_VERSION}-examples.zip
unzip \
/tmp/bootstrap-${BOOTSTRAP_VERSION}-examples.zip \
-d /tmp
cp --force /tmp/bootstrap-${BOOTSTRAP_VERSION}-examples/dashboard/dashboard.css ${GIT_REPOSITORY_DIR}/dashboard/static/css/dashboard.css
cp --force /tmp/bootstrap-${BOOTSTRAP_VERSION}-examples/dashboard/dashboard.js ${GIT_REPOSITORY_DIR}/dashboard/static/js/dashboard.js
-
Feather icons.
Example:
wget \
--output-document ${GIT_REPOSITORY_DIR}/dashboard/static/js/feather.min.js \
https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
The cmd package is used for Cobra integration.
|
The cmd package is used for Cobra integration. |
|
|
Click to show internal directories.
Click to hide internal directories.