question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy build fails on Ubuntu

See original GitHub issue

System OS: Ubuntu OS version: 16.04 Platform: x86 Kui version: v8.12.2/master node version: v12.16.1 npm version: 6.13.4

Describe the bug After building KUI on Ubuntu 16.04, I tried to create proxy docker image using the steps from https://github.com/IBM/kui/tree/master/packages/proxy#building-the-proxy. But I got the following error:

amit@amit-vm:~/work/kui/packages/proxy$ ./build.sh
staging directory: /home/amit/work/kui/packages/proxy/kui-proxy-tmp/kui
staging directory /home/amit/work/kui/packages/proxy/kui-proxy-tmp
no prescan override
tar copy to /home/amit/work/kui/packages/proxy/kui-proxy-tmp from /home/amit/work/kui/packages/proxy
nothing to do
/home/amit/work/kui/node_modules/.bin//kui-build-headless: line 147: cd: /home/amit/work/kui/packages/proxy/node_modules/@kui-shell/client: No such file or directory
Building headless dist to /home/amit/work/kui/packages/proxy/kui-proxy-tmp/kui
cp: cannot stat '/home/amit/work/kui/packages/proxy/kui-proxy-tmp/kui/node_modules/@kui-shell/builder/dist/bin/kui.cmd': No such file or directory
cp: cannot stat 'kui/node_modules/@kui-shell/core/bin/*': No such file or directory
removed 1 package in 0.281s
mv: cannot move 'kui/prescan.json' to 'kui/node_modules/@kui-shell/prescan.json': No such file or directory
find: ‘kui/node_modules/@kui-shell/!(test)’: No such file or directory
find: ‘kui/node_modules/@kui-shell/!(test)’: No such file or directory
Cleanup
cp: cannot stat '/home/amit/work/kui/packages/proxy/node_modules/@kui-shell/builder/../proxy/package.json': No such file or directory

Steps to reproduce the behavior

git clone https://github.com/IBM/kui.git
cd kui
npm ci
npm run watch
export PATH=~/work/kui/node_modules/.bin/:$PATH
cd packages/proxy
export KUBE_VERSION=v1.19.0
npm install
./build.sh

Expected behavior A docker image named kui-proxy should be created.

Please help me resolve this. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amitsadaphulecommented, Oct 9, 2020

Mounting local ~/.kube directory inside the container makes kubectl commands work. Command used:

docker run --rm -v /root/.kube:/root/.kube -p 9080:80 -e DEBUG=* kuishell/kui

Closing the issue.

0reactions
starpitcommented, Oct 9, 2020

thanks very much for the sharing the additional information. much appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

apt-get install behind proxy - Failed to fetch - Ask Ubuntu
I am running Ubuntu 18.04LTS, behind a proxy. I had a lot of packages with available updates (more than 200, I guess). I...
Read more >
Proxy Issues with docker build? - General Discussions
I usaly add --build-arg http_proxy=${http_proxy} to my docker build command, so whenever a system uses a proxy, it will be used to build...
Read more >
Wrong proxy configuration during build when using Docker ...
When building docker images on a remote host, which sits behind a proxy, via a configured Docker context, the wrong proxy configuration is...
Read more >
docker build failing with proxy - Reddit
I work with alot of vms, etc. that don't have direct access to 80/443. Must use proxy. I can reproduce this consistently on...
Read more >
Build fails behind proxy on build.snapcraft.io
I'm experiencing build failures on build.snapcraft.io, which appear to be as a result of a proxy on the build server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found