-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use podman for container image builds
Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
- Loading branch information
1 parent
125e9b8
commit afc7114
Showing
11 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.orig | ||
*.sqlite3* | ||
*.tar | ||
*.tix | ||
.ghc.environment.* | ||
.sass-cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/usr/bin/env bash | ||
if [ ! -f $1 ]; then | ||
echo "File '$1' does not exist" | ||
set -euo pipefail | ||
|
||
if [ ! -x "$1" ]; then | ||
echo "File is not executable" | ||
exit 1 | ||
fi | ||
|
||
file $1 | grep "statically linked" | grep -q stripped | ||
if [ $? -ne 0 ]; then | ||
echo "Binary does not seem to be statically linked" | ||
if ! file "$1" | grep "statically linked" | grep -q stripped; then | ||
echo "Binary is not statically linked and stripped" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
BUILD_DIR=build | ||
mkdir -p $BUILD_DIR | ||
|
||
CONFIG=$BUILD_DIR/podman.conf | ||
cat >$CONFIG <<EOL | ||
conmon_path = [ "$(command -v conmon)" ] | ||
[runtimes] | ||
runc = [ "$(command -v runc)" ] | ||
EOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"default": [{"type": "insecureAcceptAnything"}]} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ nix: | |
enable: true | ||
pure: true | ||
shell-file: nix/shell.nix | ||
resolver: lts-13.25 | ||
resolver: lts-13.26 | ||
packages: | ||
- . |