I am trying to build mtail image using the Dockerfile from https://github.com/google/mtail/blob/master/Dockerfile
Steps I followed,
Created a file named Dockerfile in my local directory. Copied contents from the above link to this file.
ran command to build image docker build -t mtail .
But build is exiting with this below error message,
make: *** No rule to make target 'depclean'. Stop.
The command '/bin/sh -c make depclean && make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2
Tried removing make depclean from Dockerfile, then it fails with,
make: *** No rule to make target 'install_deps'. Stop.
The command '/bin/sh -c make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2
Could not find any help in documentation,
https://github.com/google/mtail/blob/master/docs/Building.md
Thanks,
Sandeep
Thank you #LinPy
It was failing due to missing dependencies. Solution was to clone the entire repo of mtail, and then use Dockerfile from this to build image.
Related
I want use CircleCI.
I try getting start.
I create a new repository.
https://circleci.com/docs/2.0/getting-started/#section=getting-started
repository name is 'hello-world', and specific branch name 'circleci-project-setup'
We’ll commit the config below to duri0214/hello-world on a new branch called circleci-project-setup. If you prefer, you can use an existing config.
Setting up CircleCI
click Set Up Project. hmm... I like python.
Upload config.yml on 'circleci-project-setup' branch.
Click Start Building and follow the prompt to add your config to a new branch and start your first pipeline. Note: You can also manually add a config.yml to your project root under a .circleci folder and push this to your VCS provider.
Click Start Building??? this is nothing. document is old?
I try commit and run button.
failed, failed, failed
Why can't i
Next try
error computing cache key: template: cacheKey:1:7: executing
"cacheKey" at <checksum "requirements.txt">: error calling checksum:
open /home/circleci/project/requirements.txt: no such file or
directory
#!/bin/bash -eo pipefail if true; then pip install --user -r requirements.txt else pip install -r requirements.txt fi
ERROR: Could not open requirements file: [Errno 2] No such file or
directory: 'requirements.txt'
Exited with code exit status 1 CircleCI received exit code 1
As the documentation says, you need to place the circleci configuration in the .circlei directory
Click Start Building and follow the prompt to add your config to a new branch and start your first pipeline. Note: You can also manually add a config.yml to your project root under a .circleci folder and push this to your VCS provider.
About Click Start Building , I'm guessing it's a documentation miss, likely.
oh my goodness..
I use circleci directory instead .circleci.
success...
I am trying to package the vanilla Jenkins image into Docker using this tutorial: https://github.com/jenkinsci/jenkinsfile-runner/blob/master/DOCKER.md
Everything works until one of the last steps where the Dockerfile tries to run install-plugins.sh from a plugins.txt file that was just copeid into its own directory. This is the error I am getting when running docker build:
/usr/local/bin/install-plugins.sh: line 148: TEMP_ALREADY_INSTALLED: unbound variable
The command '/bin/sh -c /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt' returned a non-zero code: 1
Here is my plugins.txt file:
pipeline-model-definition:latest
Just the one line.
I cannot seem to figure out what might fix this issue. I tried using the suggestion from this answer here: https://github.com/jenkinsci/docker/issues/348 but the command line spat out the exact same error as above. Any help is appreciated, thanks in advance.
That variable was defined in plugins.sh (which is deprecated and supposed to be replaced by install-plugins.sh)
# the war includes a # of plugins, to make the build efficient filter out
# the plugins so we dont install 2x - there about 17!
if [ -d "$JENKINS_HOME" ]
then
TEMP_ALREADY_INSTALLED=$JENKINS_HOME/preinstalled.plugins.$$.txt
else
echo "ERROR $JENKINS_HOME not found"
exit 1
fi
But it is not defined in install-plugins.sh, only used (in line 155)
Try and set TEMP_ALREADY_INSTALLED first, as shown above, before calling install-plugins.sh.
I'm trying to build an Alpine Docker image for the FIPS-enabled version of Go. To do this, I am trying to build Go from source using the dev.boringcrypto branch of the golang/go repository.
Upon running ./all.bash, I get the following errors:
Step 4/4 : RUN cd go/src && ./all.bash
---> Running in 00db552598f7
Building Go cmd/dist using /usr/lib/go.
# _/go/src/cmd/dist
loadinternal: cannot find runtime/cgo
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-
alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-
alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
The command '/bin/bash -c cd go/src && ./all.bash' returned a non-zero code: 2
Which causes the installation tests to fail and kicks me out of the Docker image build.
I have the gcc installed on the image, and tried setting the environment variable CGO_ENABLED=0 as suggested in other questions, but neither of these things seem to alleviate the problem.
I'm at my wits end with this problem. Has anybody else run into similar issues in the past? I don't understand why this is happening, as the build runs fine in an Ubuntu container.
Thanks!
I had the same error messages, although I was compiling a different project.
It turns out that alpine needs to have the musl-dev package installed for this to work, so I think you need to make sure that is included in your Dockerfile, or manually install it by running apk add --no-cache musl-dev.
Either go isn't correctly installed on the image or the GOROOT is wrong
Put go tool dist banner and go tool dist env in your all.bash for clues
I am running a tensorflow serving container referring to this , all the previous steps are good, but in the last block I met some problems:
git clone --recurse-submodules https://github.com/tensorflow/serving
cd serving/
bazel build -c opt tensorflow_serving/...
root#15bb1c2766e3:/serving# bazel build -c opt tensorflow_serving/...
ERROR:
/root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/third_party/clang_toolchain/cc_configure_clang.bzl:3:1:
file '#bazel_tools//tools/cpp:cc_configure.bzl' does not contain
symbol 'cc_autoconf_impl'. ERROR: error loading package '': Extension
file 'third_party/clang_toolchain/cc_configure_clang.bzl' has errors.
ERROR: error loading package '': Extension file
'third_party/clang_toolchain/cc_configure_clang.bzl' has errors. INFO:
Elapsed time: 0.107s ERROR: Couldn't start the build. Unable to run
tests. And in my container, the bazel version is 0.9.0:
I just came across this error. First please check whether your Bazel version is 0.5.4 by typing the command bazel version.
If the bazel version is 0.5.4 you need to upgrade it to 0.12.0 . For updating you could change Dockerfile.devel BAZEL_VERSION to 0.12.0 and re run all the steps.
Or you could update bazel directly in the docker container by
Download bazel--installer-linux-x86_64.sh from
https://github.com/bazelbuild/bazel/releases location
chmod +x ./bazel--installer-linux-x86_64.sh
./bazel--installer-linux-x86_64.sh
I have already answered this on github and it worked. Please refer to the links https://github.com/tensorflow/serving/issues/851 and https://github.com/tensorflow/serving/issues/854
I am trying to compile the chaincode_example02 followed by this guide with Option 2 (for Mac). All steps were passed except compiling the code. I have the following error:
cd $GOPATH/src/github.com/chaincode_example02
go build
chaincode_example02.go:30:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of:
/usr/local/Cellar/go/1.7.1/libexec/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)
($GOPATH not set)
You need to prepare the fabric source as libs follow command. Make sure GOPATH had been set first.
mkdir -p $GOPATH/src/github.com/hyperledger
cd $GOPATH/src/github.com/hyperledger
git clone -b release-1.2 https://github.com/hyperledger/fabric.git
“Fabric” source code should be available locally in your GOPATH.
cd $GOPATH/src/github.com
mkdir hyperledger
cd hyperledger
git clone http://gerrit.hyperledger.org/r/fabric
As it says in the error message, your GOPATH environment variable is not set correctly.
Before doing a go build on the chaincode:
Make sure your GOPATH is set up correctly
Follow this guide
https://golang.org/doc/code.html#GOPATH )
Do echo $GOPATH to check the value of GOPATH
Make sure you have the fabric code in your GOPATH
change the import statement to github.com/hyperledger/fabric-chaincode-go/shim and use "go get github.com/hyperledger/fabric-chaincode-go/shim"