nilsirl / dockerc Goto Github PK
View Code? Open in Web Editor NEWcontainer image to single executable compiler
License: GNU General Public License v3.0
container image to single executable compiler
License: GNU General Public License v3.0
When i try to run the binary file i get these errors.
Tried with --rootfull
too same problem.
chown: changing ownership of '<file_names>': Operation not permitted
using both probably introduces an overhead.
Would be good to benchmark to have an idea of how big the overhead really is.
I am using this project to run a project like stable-diffusion that requires CUDA support, but I cannot use --gpus all
to specify GPU. What should I do?
Hi! Running the build command from the readme resulted in an error:
zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl
warning: deprecated. call std.Build.path instead
warning: deprecated. call std.Build.path instead
install
└─ install dockerc
└─ zig build-exe dockerc ReleaseSafe x86_64-linux-musl 1 errors
src/dockerc.zig:12:35: error: unable to open 'tools/skopeo': FileNotFound
const skopeo_content = @embedFile("tools/skopeo");
^~~~~~~~~~~~~~
referenced by:
main: src/dockerc.zig:33:67
...
Apparently this directory was recently deleted, so this might need some adjustments!
If a dockerc-generated executable is made available by someone else than the author of the docker image using gvisor could guarantee that using the image is safe: https://github.com/google/gvisor
At the end of running at times it fails to umount with "target busy" as the reason.
title
Ideally it standardizes the way we compile the tools we need instead of just shipping binaries...
Warning: I know this is currently unsupported.
I just wanted to see if I could help "simply" add support for either/both
$ zig build -Doptimize=ReleaseSafe
/Users/brandon/Desktop/dockerc/build.zig:41:13: error: no field named 'root_module' in struct 'Build.Step.Compile'
dockerc.root_module.addAnonymousImport("runtime", .{ .root_source_file = runtime.getEmittedBin() });
^~~~~~~~~~~
/Applications/zig-macos-aarch64-0.11.0/lib/std/Build/Step/Compile.zig:1:1: note: struct declared here
const builtin = @import("builtin");
^~~~~
referenced by:
runBuild__anon_6653: /Applications/zig-macos-aarch64-0.11.0/lib/std/Build.zig:1638:27
remaining reference traces hidden; use '-freference-trace' to see all reference traces
Not sure if I need to be on zig nightly instead of zig 0.11.0 or what. Not sure where to get stared on supporting either platform.
What is wrong?
dockerc --image docker://gander/dev:8.3 --output gander-dev
./gander-dev
2024-03-08T12:50:46.663596Z: chown `/dev/pts/0`: Invalid argument
See title, tried to package up a "serve the current working directory" go program and it instantly exited.
I'd love to use this but can't without a license file in here. Any chance you'd mind adding one?
The binary release 0.2.1 seems to keep spawning new processes, filling up memory until the OOM killer gets it when used in combination with podman.
Command used
./dockerc --image containers-storage:alpine --output alpine
Gif demonstrating should be attached. This happens on arch (6.6.25-1-lts) and ubuntu 22.04 with every podman image i tried.
I wasnt able to compile from source yet but if thats necessary lmk.
Hi,
Cool project. I notice in the documentation it mentions that you can use -e
and -v
as you would with docker run
commands. Can you please provide an example of this usage? I have tried placing those flags before and after the --image
flag and each time I get an error that the arguments are invalid.
dockerc --image docker://codeberg.org/sentryshot/sentryshot:latest -e TZ=America/New_York -v ./configs:/app/configs -v ./storage:/app/storage --output sentryshot
Invalid argument '-e'
error: InvalidArgument
dockerc -e TZ=America/New_York -v ./configs:/app/configs -v ./storage:/app/storage --image docker://codeberg.org/sentryshot/sentryshot:latest --output sentryshot
Invalid argument '-e'
error: InvalidArgument
Is there a plan to support windows? About what time?
When the postgres image tries to chown/chmod files things fail. Not sure what the fix is. Probably related to overlayfs
Also doesn't work with pivotalrabbitmq/perf-test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.