In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to install buildkit.tcz and vscode.tcz on tc, get through vscodeonline and openfaas to simulate cloudbase to create a fragmented programming development and deployment environment, the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Buildkit.tcz+instant commit
First of all, download the latest version of buildkit, which, like docker,openfaas,containerd, is all go binary, using the same tcz construction method of "a mixed package management and container management solution, and installing containerd and openfaas on tinycorelinux". Put all the bin of the downloaded v0.8.1 buildkit package into one squashfs-root/usr/local/bin (no need to add chmod + x because it comes with the download package) Then create a new squashfs-root/usr/local/etc/init.d/, and put two chmod + x. / buildkit. / makedockerconfig:
This is in makedockerconfig, where buildkit+containerd replaces the entire docker as the build tool and runtime (containerd cannot build,ctr image build without this command), but the configuration file uses the same set of docking dockerhub.
Read-p "enter your dockerhub username:" DOCKERHUB_USERNAMEread-p "enter your dockerhub personal access token:" DOCKERHUB_TOKENrm-rf ~ / .docker/config.jsonmkdir-p ~ / .docker/cat > ~ / .docker/config.json ERROR exporting to image 0.1serror: failed to solve: rpc error: code = Unknown desc = mount callback failed on / tmp/containerd-mount267804283: mount callback failed on / tmp/containerd-mount706848158: failed to write compressed diff: failed to create diff tar stream: failed to get xattr for / tmp/containerd-mount267804283/bin: operation not supported
This is because I use ext3 in tc11, and neither CONFIG_EXT3_FS nor CONFIG_EXT3_FS_XATTR is enabled in the config-5.4.3-tinycore64 used to build tc11, which makes it unsuccessful for buildkit to call xattr-related commands. So recompile the kernel. Note that you want to sudo make install, not just sudo make getting vmlinux under arch/boot/x86/compressed, but vmlinuz under / boot after install. Otherwise, although the compilation is successful, but kernel image will not run, it will prompt invalid magic number
Install kernel image, restart, and solve the problem. You can implement registry commit-free in the local container. Finally, in the command, click whether you need to upload to dockerhub and add a push=true.
Of course, all this is only done on the command line now, and it has not risen to the integration of the background interface function of openfaas 8080/ui. But as scenario 2 mentioned above, the next vscode mount is much better.
Vscode.tcz + mount
We downloaded cdr's code-server-3.8.0-amd64 and unzipped all the files into squashfs-root 's / usr/local/lib/ by pressing "panel.sh: a nginx+docker cloud letter and online IDE panel, inventing your own paas (2)". Then create a new squashfs-root/usr/local/bin,squashfs-root/usr/local/etc/init.d/ and then:
Cd squashfs-root/usr/local/bin sudo ln-s.. / lib/code-server-3.8.0/bin/code-server code-server sudo chmod + x. / code-server
Cd squashfs-root/usr/local/etc/init.d/ sudo touch vscodeonline makevscodeconfig sudo chmod + x. / vscodeonline makevscodeconfig
Put it in the makevscodeconfig:
Read-p "enter your desired access token (plain strings ok):" VSCODE_TOKENrm-rf ~ / .config/code-server/config.yamlmkdir-p ~ / .config/code-server/cat > ~ / .config/code-server/config.yaml
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.