summaryrefslogtreecommitdiff
path: root/apps/docker/docker-build-dev.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apps/docker/docker-build-dev.sh')
-rw-r--r--apps/docker/docker-build-dev.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/docker/docker-build-dev.sh b/apps/docker/docker-build-dev.sh
new file mode 100644
index 0000000000..830f5b2f4d
--- /dev/null
+++ b/apps/docker/docker-build-dev.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+IMPORT_DB=$1
+
+source "$CUR_PATH/docker-build-prod.sh"
+
+echo "Fixing EOL..."
+# using -n (new file mode) should also fix the issue
+# when the file is created with the default acore user but you
+# set a different user into the docker configurations
+for file in "env/dist/etc/"*
+do
+ dos2unix -n $file $file
+done
+
+[[ $IMPORT_DB != 0 ]] && bash acore.sh db-assembler import-all || true