I really don't get it anymore...
Some checks failed
Test action / Print hello world (push) Failing after 1m49s
Some checks failed
Test action / Print hello world (push) Failing after 1m49s
This commit is contained in:
parent
a39cb0cf53
commit
3d02de9c6c
1 changed files with 13 additions and 22 deletions
|
@ -3,41 +3,32 @@
|
||||||
pkgs_linux ? import <nixpkgs> { system = "x86_64-linux"; },
|
pkgs_linux ? import <nixpkgs> { system = "x86_64-linux"; },
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
|
||||||
debian = dockerTools.pullImage {
|
|
||||||
imageName = "debian";
|
|
||||||
imageDigest = "sha256:1e45698b8553ad4b2e074f59f14c579194aa9b003f5c7b4a3d8704087954909b";
|
|
||||||
# hash = lib.fakeSha256;
|
|
||||||
sha256 = "sha256-GDxa0yegZDaagKfl3tS6prhQI0ECXduWrdPgr8uLClU=";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
dockerTools.buildImage {
|
dockerTools.buildImage {
|
||||||
name = "default";
|
name = "default";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
# fromImage = debian;
|
|
||||||
|
|
||||||
copyToRoot = buildEnv {
|
copyToRoot = buildEnv {
|
||||||
name = "image-root";
|
name = "image-root";
|
||||||
pathsToLink = [ "/bin" ];
|
pathsToLink = [ "/bin" ];
|
||||||
paths = [
|
paths = [
|
||||||
coreutils
|
coreutils
|
||||||
# u-root-cmds
|
u-root-cmds
|
||||||
bash
|
bash
|
||||||
# nix
|
nix
|
||||||
# nodejs
|
nodejs
|
||||||
# podman
|
podman
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
runAsRoot = ''
|
# runAsRoot = ''
|
||||||
#!${stdenv.shell}
|
# #!${stdenv.shell}
|
||||||
${dockerTools.shadowSetup}
|
# ${dockerTools.shadowSetup}
|
||||||
groupadd -r runner
|
# groupadd -r runner
|
||||||
useradd -r -g runner -d /data -M runner
|
# useradd -r -g runner -d /data -M runner
|
||||||
mkdir /data
|
# mkdir /data
|
||||||
chown runner:runner /data
|
# chown runner:runner /data
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
User = "runner";
|
User = "runner";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue