Skip to content

Commit

Permalink
Re: #2055 - WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-ratcliffe committed Aug 4, 2023
1 parent 56083dd commit 486d336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/datawave-quickstart/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY . /opt/datawave

WORKDIR /opt/datawave

RUN find /opt/datawave -type f && exit 1
RUN ls -1 /opt/datawave/.git && exit 1

# Create new Git repo and configure environment...
#RUN git status && cat .dockerignore
Expand Down
10 changes: 5 additions & 5 deletions contrib/datawave-quickstart/docker/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -134,15 +134,15 @@ function prepareBuildContext() {

# Source env.sh to force all tarballs to be downloaded and the DW binaries to be built, if necessary

source "${QUICKSTART_DIR}/bin/env.sh"
#source "${QUICKSTART_DIR}/bin/env.sh"

datawaveBuildSucceeded || fatal "Most recent DataWave build failed. Cannot proceed with Docker build!"
#datawaveBuildSucceeded || fatal "Most recent DataWave build failed. Cannot proceed with Docker build!"

# 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}"
#sanityCheckTarball "${QUICKSTART_DIR}/bin/services/maven" "apache-maven*.tar.gz" "${DW_MAVEN_DIST_URI}"
}

function sanityCheckTarball() {
Expand Down

0 comments on commit 486d336

Please sign in to comment.