mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-11 03:28:09 +03:00
18 lines
486 B
Bash
Executable File
18 lines
486 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
VOLUME_NAME="noredink-ui-nixos-shell-nix"
|
|
|
|
if ! docker volume ls | grep -q "$VOLUME_NAME"; then
|
|
docker volume create "$VOLUME_NAME"
|
|
fi
|
|
|
|
docker run \
|
|
--interactive \
|
|
--tty \
|
|
--mount "type=bind,source=$(pwd),target=/app" \
|
|
--mount "type=volume,source=$VOLUME_NAME,target=/nix" \
|
|
--workdir /app \
|
|
lnl7/nix:latest \
|
|
nix-shell --command 'mkdir -p /etc/ssl/certs && ln -s $NIX_SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt && return'
|