Skip to content

Commit

Permalink
build with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
frie321984 committed Oct 12, 2024
1 parent 7a1ded3 commit 5159610
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
result
1 change: 1 addition & 0 deletions login.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cat ~/.ssh/gitlab-acces-token | podman login --password-stdin --username frie321984 registry.gitlab.com
9 changes: 9 additions & 0 deletions nixDockImg.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs; dockerTools.buildLayeredImage {
name = "hello";
tag = "latest";

contents = [ cowsay bashInteractive coreutils catimg ];

config.Cmd = [ "/bin/bash" ];
}

0 comments on commit 5159610

Please sign in to comment.