# Keep sorted { buildEnv , coreutils , default , dockerTools , envsubst , moreutils , openssl , writeShellScript , writeTextDir }: dockerTools.buildImage { name = "complement-grapevine"; copyToRoot = buildEnv { name = "image-root"; paths = [ (writeTextDir "app/config.toml" (builtins.readFile ./config.toml)) coreutils default moreutils envsubst openssl ]; pathsToLink = [ "/bin" "/app" ]; }; config = { ExposedPorts = { "8008/tcp" = {}; "8448/tcp" = {}; }; Cmd = [ (writeShellScript "docker-entrypoint.sh" '' set -euo pipefail mkdir -p /tmp # trust certs signed by the complement test CA mkdir -p /etc/ssl/certs # we don't have any other trusted certs, so just replace this file # entirely cp /complement/ca/ca.crt /etc/ssl/certs/ca-certificates.crt # sign our TLS cert with the complement test CA cat > /app/v3.ext <