I've made changes to grafana source code.
Ran e2e tests to make sure its working.
I work on MACOS
But when I tried to build a docker image from this, am afraid I don't understand how this works.
Ran this command make build-docker-full
output:
make build-docker-full
build docker container
docker build --tag grafana/grafana:dev .
Sending build context to Docker daemon 1.465GB
Step 1/44 : FROM golang:1.13.4-alpine
---> 3024b4e742b0
Step 2/44 : RUN apk add --no-cache gcc g++
---> Using cache
---> 0a34470e75af
Step 3/44 : WORKDIR $GOPATH/src/github.com/grafana/grafana
---> Using cache
---> 746e9a262b17
Step 4/44 : COPY go.mod go.sum ./
---> Using cache
---> 991f5eb4e93c
Step 5/44 : COPY vendor vendor
---> Using cache
---> 31461560264e
Step 6/44 : RUN go mod verify
---> Using cache
---> fb1ca8327171
Step 7/44 : COPY pkg pkg
---> 3766271f9d5a
Step 8/44 : COPY build.go package.json ./
---> 11ebcd1d9457
Step 9/44 : RUN go run build.go build
---> Running in aff10ee85d73
Version: 7.0.0-pre, Linux Version: 7.0.0, Package Iteration: 1584810976pre
rm -r ./bin/linux-amd64/grafana-server
rm -r ./bin/linux-amd64/grafana-server.md5
go version
go version go1.13.4 linux/amd64
Targeting linux/amd64
go build -ldflags -w -X main.version=7.0.0-pre -X main.commit=unknown-dev -X main.buildstamp=1584810976 -X main.buildBranch=master -mod=vendor -o ./bin/linux-amd64/grafana-server ./pkg/cmd/grafana-server
rm -r ./bin/linux-amd64/grafana-cli
rm -r ./bin/linux-amd64/grafana-cli.md5
go version
go version go1.13.4 linux/amd64
Targeting linux/amd64
go build -ldflags -w -X main.version=7.0.0-pre -X main.commit=unknown-dev -X main.buildstamp=1584811210 -X main.buildBranch=master -mod=vendor -o ./bin/linux-amd64/grafana-cli ./pkg/cmd/grafana-cli
Removing intermediate container aff10ee85d73
---> dd409b765652
Step 10/44 : FROM node:12.13.0-alpine
---> 69c8cc9212ec
Step 11/44 : RUN apk add --no-cache curl && cd /tmp && curl -Ls https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz | tar xz && cp -R lib lib64 / && cp -R usr/lib/x86_64-linux-gnu /usr/lib && cp -R usr/share /usr/share && cp -R etc/fonts /etc && curl -k -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar -jxf - && cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
---> Using cache
---> f6e3c1365333
Step 12/44 : WORKDIR /usr/src/app/
---> Using cache
---> 68d834461a97
Step 13/44 : COPY package.json yarn.lock ./
---> d7e624ffddc4
Step 14/44 : COPY packages packages
---> dae5b06d3315
Step 15/44 : RUN yarn install --pure-lockfile --no-progress
---> Running in 0b6acb809b2e
yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info fsevents#1.2.9: The platform "linux" is incompatible with this module.
info "fsevents#1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.2: The platform "linux" is incompatible with this module.
info "fsevents#2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "#grafana/slate-react > slate-react-placeholder#0.2.8" has unmet peer dependency "slate-react#>=0.22.0".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/data > rollup-plugin-visualizer#0.9.2" has incorrect peer dependency "rollup#>=0.60.0 <1".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-docs#5.3.9" has unmet peer dependency "react-is#^16.8.0".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-storysource#5.3.14" has unmet peer dependency "#storybook/source-loader#*".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/api#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/addons#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/components#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/core-events#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-docs > #egoist/vue-to-react#1.1.0" has unmet peer dependency "vue#^2.6.10".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-actions > react-inspector > storybook-chromatic#2.2.2" has unmet peer dependency "#storybook/core#3.* || 4.* || 5.*".
[5/5] Building fresh packages...
Done in 1729.76s.
And I left this overnight;
The process didn't finish, so I interrupted.
^Cmake: *** [build-docker-full] Interrupt: 2
Can any one help me build this.??
I want to know, where the image is built and how I could pull this image.
My current guess is it will directly push this image to my dockerhub repo as grafana:dev.
Thank you.
Related
I install firebase-tools with npm
but terminal can't find firebase-tools :(...
also I tried auto installing script "curl -sL https://firebase.tools | bash" but this also give me this error "This tool has encountered an error."
what should i do?
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$ sudo npm install firebase-tools -g
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
/Users/kangtaegeun/.npm-global/bin/firebase -> /Users/kangtaegeun/.npm-global/lib/node_modules/firebase-tools/lib/bin/firebase.js
> protobufjs#6.10.1 postinstall /Users/kangtaegeun/.npm-global/lib/node_modules/firebase-tools/node_modules/protobufjs
> node scripts/postinstall
+ firebase-tools#8.9.0
added 593 packages from 364 contributors in 32.084s
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$ firebase
-bash: /usr/local/bin/firebase: No such file or directory
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$
I have been trying to install openpose on google colab using the following script.
import os
from os.path import exists, join, basename, splitext
git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git'
project_name = splitext(basename(git_repo_url))[0]
if not exists(project_name):
# see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949
# install new CMake becaue of CUDA10
!wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
!tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
# clone openpose
!git clone -q --depth 1 $git_repo_url
!sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
# install system dependencies
!apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
# install python dependencies
!pip install -q youtube-dl
# build openpose
!cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j`nproc`
Here is a link to that colab notebook Link to colab notebook . Worked fine there. However, when I try the same script on my own colab notebook I get the following error.
[ 82%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o
[ 82%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/math_functions.cpp.o
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/signal_handler.cpp.o
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o
[ 84%] Linking CXX shared library ../../lib/libcaffe.so
CMake Error: failed to create symbolic link '../../lib/libcaffe.so': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported
src/caffe/CMakeFiles/caffe.dir/build.make:2215: recipe for target 'lib/libcaffe.so.1.0.0' failed
make[5]: *** [lib/libcaffe.so.1.0.0] Error 1
make[5]: *** Deleting file 'lib/libcaffe.so.1.0.0'
CMakeFiles/Makefile2:240: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[4]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/openpose_lib.dir/build.make:110: recipe for target 'caffe/src/openpose_lib-stamp/openpose_lib-build' failed
make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-build] Error 2
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/openpose_lib.dir/all' failed
make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Don't know why I get this error.
CMake Error: failed to create symbolic link '../../lib/libcaffe.so': operation not supported on socket
Any help would be appreciated. Thanks in advance.
There is probably some version issue of cmake, CUDA and cuDNN. Check for compatibility.
I'm attempting to use the gganiminate library and I'm having an issue when I call gganimate::gganimate(myplot). The issue appears to be with a dependency library, magick.
When I call the function I get the following warning:
gganimate::gganimate(p)
1: running command 'C:\WINDOWS\system32\cmd.exe /c convert --version' had status 4
2: In find_magic() : ImageMagick not installed yet!
In im.convert(img.files, output = path.expand(movie.name), ... :
Please install ImageMagick first or put its bin path into the system PATH variable
So I try to install magick separately. I'm on a machine at a client so installing packages from github requires me to provide info to get through the firewall. I've installed other libraries from github with this machine using the same technique successfully. However, magick appears to be bumping into other problems. Below is my code and the error:
devtools::install_github("ropensci/magick",httr::set_config(httr::use_proxy("xx.xxx.xx.xx",xxxx)))
Downloading GitHub repo ropensci/magick#master
from URL https://api.github.com/repos/ropensci/magick/zipball/master
Installing magick
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" \
--no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/r631265/AppData/Local/Temp/1/RtmpS0efnQ/devtools18fc5f2414b/ropensci-magick-7925af3" \
--library="C:/Users/r631265/Documents/R/win-library/3.4" \
--install-tests
* installing *source* package 'magick' ...
** libs
*** arch - i386
rm -f RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o magick.dll
Linking to imagemagagick-6.9.9
"C:/PROGRA~1/R/R-34~1.3/bin/i386/Rscript.exe" "../tools/winlibs.R" 6.9.9
Error in curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip", :
schannel: failed to receive handshake, SSL/TLS connection failed
Calls: <Anonymous> -> .Call
Execution halted
make: *** [winlibs] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="magick.dll" OBJECTS="RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o"' had status 2
ERROR: compilation failed for package 'magick'
* removing 'C:/Users/r631265/Documents/R/win-library/3.4/magick'
In R CMD INSTALL
Installation failed: Command failed (1)
I think perhaps my firewall details aren't getting passed into: curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip",...)
Network security is a bit of a black box to me so I'm not sure what else to try or if I'm diagnosing the issue correctly. Any help would be greatly appreciated!
I just buy a new VPS (from OVH - VPS SSD 1 - Debian 7 Wheezy 64bit) and I try to deploy on prod my Meteor project using Meteor-Up (more exactly the mupx version).
When I try to setup mupx setup I got some error for installing Docker.
I tried to install manually docker on the server, and on my local computer. I also tried to launch the setup command with sudo, but nothing better..
Any idea ?
Started TaskList: Setup (linux)
[158.69.210.254] - Installing Docker
[158.69.210.254] x Installing Docker: FAILED
-----------------------------------STDERR-----------------------------------
opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D || apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server pool.sks-keyservers.net
gpg: key 2C52609D: "Docker Release Tool (releasedocker) <docker#docker.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
+ sh -c mkdir -p /etc/apt/sources.list.d
+ dpkg --print-architecture
+ sh -c echo deb [arch=amd64] https://apt.dockerproject.org/repo debian-wheezy main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
E: Unable to correct problems, you have held broken packages.
-----------------------------------STDOUT-----------------------------------
an-wheezy/main Translation-en_GB
Ign https://apt.dockerproject.org debian-wheezy/main Translation-en
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-engine : Depends: init-system-helpers (>= 1.18~) but it is not installable
Recommends: aufs-tools but it is not going to be installed
Recommends: cgroupfs-mount but it is not installable or
cgroup-lite but it is not installable
Recommends: git but it is not going to be installed
Recommends: yubico-piv-tool (>= 1.1.0~) but it is not installable
----------------------------------------------------------------------------
The error is because Docker version didn't work on Debian 7, but only Debian 8.
Si just have to reinstall VPS using OVH manager and all work fine !
I'm trying to run a Hamattan Application on a Meego Device, but everytime I try to run it into the Meego device:
:-1: error: Installing package failed.
always appears. But sometimes when I check my phone the application is there and it's running.
In Settings->Applications->Manage Applications it says there:
Test2
Installation Failed
Please Help me. Thank you very much!
Compile Output:
Running build steps for project test2...
Configuration unchanged, skipping qmake step.
Starting: "C:\qtsdk\madde\bin\make.exe" -w
make: Entering directory `/c/Users/bcue/Qt/test2'
make: Nothing to be done for `first'.
make: Leaving directory `/c/Users/bcue/Qt/test2'
The process "C:\qtsdk\madde\bin\make.exe" exited normally.
Creating package file ...
Package Creation: Running command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us'.
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package test2
dpkg-buildpackage: source version 0.0.1
dpkg-buildpackage: source changed by unknown <>
dpkg-buildpackage: host architecture armel
which: pgp: unknown command
debian/rules build
make: Nothing to be done for `build'.
debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/test2.
/usr/bin/make INSTALL_ROOT="/c/Users/bcue/Qt/test2"/debian/test2 install
make[1]: Entering directory `/c/Users/bcue/Qt/test2'
install -m 644 -p c:/Users/bcue/Qt/test2/test2.desktop /c/Users/bcue/Qt/test2/debian/test2/usr/share/applications/
install -m 644 -p c:/Users/bcue/Qt/test2/test2.png /c/Users/bcue/Qt/test2/debian/test2/usr/share/icons/hicolor/64x64/apps/
install -m 755 -p "test2" "/c/Users/bcue/Qt/test2/debian/test2/opt/test2/bin/test2"
make[1]: Leaving directory `/c/Users/bcue/Qt/test2'
sed 's:^Icon=.*:Icon=/usr/share/icons/hicolor/64x64/apps/test2.png:' /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop > /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed || echo -n
mv /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop || echo -n
sed 's:Exec=.*:Exec=/opt/test2/bin/test2:' /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop > /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed || echo -n
mv /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop.sed /C/Users/bcue/Qt/test2/debian/test2/usr/share/applications/test2.desktop || echo -n
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-shlibdeps: warning: dependency on libgcc_s.so.1 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libmdeclarativecache.so.0 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be avoided if "debian/test2/opt/test2/bin/test2" were not uselessly linked against it (they use none of its symbols).
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
a - debian-binary
a - control.tar.gz
a - data.tar.gz
dpkg-buildpackage: binary only upload (no source included)
Use of uninitialized value in undef operator at /madbin/dpkg-buildpackage line 369.
dpkg-genchanges -b -u.. >../test2_0.0.1_armel.changes
dpkg-genchanges: binary-only upload - not including any source code
Package created.
Installing package to sysroot ...
c:\Users\bcue\Qt\qt-components-qt-components\C;c:\qtsdk\madde\Users\bcue\Qt\test2\test2_0_0_1_armel.deb: No such file or directory
c:\qtsdk\madde\targets\harmattan-nokia-meego-api\bin\ar.exe:
Cannot find package name (in debian control file).
Connecting to device...
Started uploading file 'C:\Users\bcue\Qt\test2\test2_0_0_1_armel.deb'.
Successfully uploaded file 'C:\Users\bcue\Qt\test2\test2_0_0_1_armel.deb'.
Installing package to device...
warning, in file '/var/lib/dpkg/status' near line 663 package 'mp-harmattan-rm680-pr':
missing description
(Reading database ...
29097 files and directories currently installed.)
Preparing to replace test2 0.0.1 (using .../test2_0_0_1_armel.deb) ...
Unpacking replacement test2 ...
aegis-installing test2 (from 'com.nokia.maemo')
dpkg: dependency problems prevent configuration of test2:
test2 depends on libqt4-declarative (>= 4.7.4~git20110516); however:
Version of libqt4-declarative on system is 4.7.3~git20110329-0maemo1+0m6.
test2 depends on libqtcore4 (>= 4.7.4~git20110516); however:
Version of libqtcore4 on system is 4.7.3~git20110329-0maemo1+0m6.
test2 depends on libqtgui4 (>= 4.7.4~git20110516); however:
Version of libqtgui4 on system is 4.7.3~git20110329-0maemo1+0m6.
dpkg: error processing test2 (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Errors were encountered while processing:
test2
Deployment failed.
Error while building project test2 (target: Harmattan)
When executing build step 'Deploy to Harmattan device'
did you updated your Qt Creator? (2.3.1 if I'm not wrong)
the update bring along the updated SDK for the meego harmattan,.
in that case you should also update your meego phone too because there's some dependency for the newest library. (read the error, dependency-problem)
check here for the update package
http://www.developer.nokia.com/search/search.xhtml?view=ebs&hv=fn:type%3DfnType:Terminal&s=ft&tl=0&ob=best&me=false&l=20&expandDoc=false&k=N950+device+update&oldK=N950+device+update
this one problem makes me revert my QtCreator to the old one , I'm not allowed to upgrade the phone. duh