mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
4813d9829b
This removes the baked in codedump inspection and wrapper scripts in favour of downstream tooling overriding this as necessary by using FROM <image> in their respective dockerfile.
18 lines
364 B
Bash
Executable File
18 lines
364 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
say() {
|
|
echo "$1" >&2
|
|
}
|
|
|
|
say "Building nix/ops/image..."
|
|
nix_out="$(nix-build nix/ops -A image --no-out-link "$@")"
|
|
|
|
say "Loading $nix_out into Docker..."
|
|
nix_name="$(docker load --quiet --input $nix_out)"
|
|
nix_name="${nix_name#Loaded image: }"
|
|
|
|
# Output only the tag on stdout for subsequent pipes/tooling.
|
|
echo $nix_name
|