mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
18 lines
436 B
Bash
Executable file
18 lines
436 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Starts a ubuntu docker container with the source code mounted
|
|
|
|
if [ "$(basename "$(pwd)")" != "kanidm" ]; then
|
|
echo "Please run this from the root dir of the repo"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Starting base ubuntu container"
|
|
echo "Repository is in ~/kanidm/"
|
|
docker run --rm -it \
|
|
-e "INSTALL_RUST=1" \
|
|
-e "PACKAGING=1" \
|
|
-v "$(pwd):/root/kanidm/" \
|
|
--workdir "/root/kanidm/" \
|
|
ubuntu:latest "$@"
|