mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
* Add development tools to docker image python3-cogapp, clang-format, treefmt Add script to run development environment in docker container Document docker use in docs/docker.md --------- Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com> Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
19 lines
489 B
Bash
Executable File
19 lines
489 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Create docker image for development environment and enter container
|
|
#
|
|
# Run from project root directory
|
|
#
|
|
|
|
set -e
|
|
|
|
# Verify script is running from project root
|
|
if [ ! -d ".devcontainer" ]; then
|
|
echo "Error: This script must be run from the project root directory." >&2
|
|
echo "The .devcontainer directory was not found." >&2
|
|
exit 1
|
|
fi
|
|
|
|
docker build -t etl .devcontainer
|
|
docker run -it --rm -v "$(pwd)":/home/vscode/etl -u vscode -w /home/vscode/etl etl /bin/bash
|