Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
063b54ae
Commit
063b54ae
authored
Feb 15, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cli): add grafana-cli to linux packages
parent
5adac86b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
build.go
+9
-4
No files found.
build.go
View file @
063b54ae
...
@@ -138,7 +138,8 @@ func readVersionFromPackageJson() {
...
@@ -138,7 +138,8 @@ func readVersionFromPackageJson() {
type
linuxPackageOptions
struct
{
type
linuxPackageOptions
struct
{
packageType
string
packageType
string
homeDir
string
homeDir
string
binPath
string
serverBinPath
string
cliBinPath
string
configDir
string
configDir
string
configFilePath
string
configFilePath
string
ldapFilePath
string
ldapFilePath
string
...
@@ -159,7 +160,8 @@ func createDebPackages() {
...
@@ -159,7 +160,8 @@ func createDebPackages() {
createPackage
(
linuxPackageOptions
{
createPackage
(
linuxPackageOptions
{
packageType
:
"deb"
,
packageType
:
"deb"
,
homeDir
:
"/usr/share/grafana"
,
homeDir
:
"/usr/share/grafana"
,
binPath
:
"/usr/sbin/grafana-server"
,
serverBinPath
:
"/usr/sbin/grafana-server"
,
cliBinPath
:
"/usr/sbin/grafana-cli"
,
configDir
:
"/etc/grafana"
,
configDir
:
"/etc/grafana"
,
configFilePath
:
"/etc/grafana/grafana.ini"
,
configFilePath
:
"/etc/grafana/grafana.ini"
,
ldapFilePath
:
"/etc/grafana/ldap.toml"
,
ldapFilePath
:
"/etc/grafana/ldap.toml"
,
...
@@ -181,7 +183,8 @@ func createRpmPackages() {
...
@@ -181,7 +183,8 @@ func createRpmPackages() {
createPackage
(
linuxPackageOptions
{
createPackage
(
linuxPackageOptions
{
packageType
:
"rpm"
,
packageType
:
"rpm"
,
homeDir
:
"/usr/share/grafana"
,
homeDir
:
"/usr/share/grafana"
,
binPath
:
"/usr/sbin/grafana-server"
,
serverBinPath
:
"/usr/sbin/grafana-server"
,
cliBinPath
:
"/usr/sbin/grafana-cli"
,
configDir
:
"/etc/grafana"
,
configDir
:
"/etc/grafana"
,
configFilePath
:
"/etc/grafana/grafana.ini"
,
configFilePath
:
"/etc/grafana/grafana.ini"
,
ldapFilePath
:
"/etc/grafana/ldap.toml"
,
ldapFilePath
:
"/etc/grafana/ldap.toml"
,
...
@@ -216,7 +219,9 @@ func createPackage(options linuxPackageOptions) {
...
@@ -216,7 +219,9 @@ func createPackage(options linuxPackageOptions) {
runPrint
(
"mkdir"
,
"-p"
,
filepath
.
Join
(
packageRoot
,
"/usr/sbin"
))
runPrint
(
"mkdir"
,
"-p"
,
filepath
.
Join
(
packageRoot
,
"/usr/sbin"
))
// copy binary
// copy binary
runPrint
(
"cp"
,
"-p"
,
filepath
.
Join
(
workingDir
,
"tmp/bin/"
+
serverBinaryName
),
filepath
.
Join
(
packageRoot
,
options
.
binPath
))
runPrint
(
"cp"
,
"-p"
,
filepath
.
Join
(
workingDir
,
"tmp/bin/grafana-server"
),
filepath
.
Join
(
packageRoot
,
options
.
serverBinPath
))
// copy binary
runPrint
(
"cp"
,
"-p"
,
filepath
.
Join
(
workingDir
,
"tmp/bin/grafana-cli"
),
filepath
.
Join
(
packageRoot
,
options
.
cliBinPath
))
// copy init.d script
// copy init.d script
runPrint
(
"cp"
,
"-p"
,
options
.
initdScriptSrc
,
filepath
.
Join
(
packageRoot
,
options
.
initdScriptFilePath
))
runPrint
(
"cp"
,
"-p"
,
options
.
initdScriptSrc
,
filepath
.
Join
(
packageRoot
,
options
.
initdScriptFilePath
))
// copy environment var file
// copy environment var file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment