2022-07-20 09:21:40 +02:00
|
|
|
#!/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 \
|
2023-09-27 06:08:20 +02:00
|
|
|
-e "INSTALL_RUST=1" \
|
|
|
|
-e "PACKAGING=1" \
|
2022-07-20 09:21:40 +02:00
|
|
|
-v "$(pwd):/root/kanidm/" \
|
|
|
|
--workdir "/root/kanidm/" \
|
2024-02-05 09:06:43 +01:00
|
|
|
--entrypoint "/root/kanidm/platform/debian/interactive_entrypoint.sh" \
|
2022-07-20 09:21:40 +02:00
|
|
|
ubuntu:latest "$@"
|