-
Kaniko works differently from Docker. It runs inside a Docker container and detect and extract new layers to build Docker images. Since Kaniko manipulates the filesystem (layers) inside the Docker container, it can have unexpected side effect if not used carefully. For this reason, the developer team suggests users to …
WSL2 Filesystem
Performance Issue
The performance of IO is extremely bad if you access the the Windows filesystem from WSL 2. This is also true if you use Docker in WSL 2 (since Docker on WSL 2 share the same kernel as WSL 2). It is suggested that you stick to WSL …
Run Docker Containers Inside a Docker Container
You can run Docker containers inside a Docker container.
To allow this,
you have to pass the docker socks into the container
using the option -v /var/run/docker.sock:/var/run/docker.sock.
For more discussions,
please refer to
How To Run Docker in Docker Container [3 Easy Methods …
Packaging Python Dependencies for PySpark Using python-build-standalone
You can build a portable Python environment following steps below.
-
Install python-build-standalone.
-
Install Python packages using pip of the installed python-build-standalone distribution.
-
Pack the whole python-build-standalone directory into a compressed file, e.g.,
env.tar.gz.
The GitHub repo dclong/python-portable has good examples of building portable Python environments leveraging …
Build a Fat JAR Using Maven Without a Java Project
You can use Maven to download dependencies of Java packages without creating a Java project.
For example,
if you want to download all dependencies of arrow-jvm and arrow-memory
and build everything into a single fat jar (for easy use in other places),
you can first crate a file pom.xml …
Useful Visual Studio Code Extensions
Places to Find Extensoins
Visual Studio Code Marketplace and Open VSX Registry are 2 places to find VSCode compatible extensions.
Install VSCode Extensions from Command-line
https://stackoverflow.com/questions/34286515/how-to-install-visual-studio-code-extensions-from-command-line/34339780#34339780
Install Code-Server Extensions from Command-line
If you install extension in Dockerfile using root,
the extensions are installed …