diff --git a/.dockerignore b/.dockerignore deleted file mode 120000 index cd8c5279036..00000000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -/workspace/datawave/contrib/datawave-quickstart/docker/.dockerignore \ No newline at end of file diff --git a/contrib/datawave-quickstart/docker/.dockerignore b/contrib/datawave-quickstart/docker/.dockerignore index 7cea84fc8e5..01c2897527c 100644 --- a/contrib/datawave-quickstart/docker/.dockerignore +++ b/contrib/datawave-quickstart/docker/.dockerignore @@ -6,6 +6,8 @@ # Ignore any ide and repo dirs/files +.git + **/.m2 **/.git **/.idea diff --git a/contrib/datawave-quickstart/docker/Dockerfile b/contrib/datawave-quickstart/docker/Dockerfile index 4f16a5def29..d936761d930 100644 --- a/contrib/datawave-quickstart/docker/Dockerfile +++ b/contrib/datawave-quickstart/docker/Dockerfile @@ -69,11 +69,9 @@ RUN /bin/bash -c "/usr/bin/nohup /usr/sbin/sshd -D &" && \ # Primary data volume (for HDFS, Accumulo, ZooKeeper, etc) VOLUME ["/opt/datawave/contrib/datawave-quickstart/data"] - # In case user wants to rebuild DW VOLUME ["$HOME/.m2/repository"] - VOLUME ["/opt/datawave/contrib/datawave-quickstart/hadoop/logs"] VOLUME ["/opt/datawave/contrib/datawave-quickstart/accumulo/logs"] VOLUME ["/opt/datawave/contrib/datawave-quickstart/wildfly/standalone/log"] diff --git a/contrib/datawave-quickstart/docker/docker-build.sh b/contrib/datawave-quickstart/docker/docker-build.sh index 8b6c06ad0fe..e3aa4eb1c8a 100755 --- a/contrib/datawave-quickstart/docker/docker-build.sh +++ b/contrib/datawave-quickstart/docker/docker-build.sh @@ -100,7 +100,7 @@ function removeDatawaveTarball() { function cleanBuildContext() { info "Cleaning up" - unlink ${DATAWAVE_SOURCE_DIR}/.dockerignore > /dev/null 2>&1 && info ".dockerignore symlink removed" + rm -f ${DATAWAVE_SOURCE_DIR}/.dockerignore > /dev/null 2>&1 && info ".dockerignore copy removed" # Remove any potentially stale DataWave tarballs from the DW service directory. Removal # will guarantee that a fresh Maven build is triggered whenever env.sh is sourced @@ -140,7 +140,7 @@ function prepareBuildContext() { # Set temporary .dockerignore symlink in DATAWAVE_SOURCE_DIR for context exclusions... - ln -s "${THIS_DIR}/.dockerignore" "${DATAWAVE_SOURCE_DIR}/.dockerignore" || fatal "Failed to set .dockerignore symlink" + cp "${THIS_DIR}/.dockerignore" "${DATAWAVE_SOURCE_DIR}/.dockerignore" || fatal "Failed to copy .dockerignore into place" sanityCheckTarball "${QUICKSTART_DIR}/bin/services/maven" "apache-maven*.tar.gz" "${DW_MAVEN_DIST_URI}" }