Skip to content

Commit 8cd6177

Browse files
committed
Merge branch 'develop' into 11744-cors-echo-origin-vary
2 parents d1dce07 + 0b7e41c commit 8cd6177

File tree

15 files changed

+41
-536
lines changed

15 files changed

+41
-536
lines changed

doc/sphinx-guides/source/container/dev-usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ Accessing Harvesting Log Files
145145

146146
\1. Open a terminal and access the Dataverse container.
147147

148-
Run the following command to access the Dataverse container (assuming your container is named dataverse-1):
148+
Run the following command to access the Dataverse container:
149149

150150
.. code-block::
151151
152-
docker exec -it dataverse-1 bash
152+
docker exec -it dev_dataverse bash
153153
154-
This command opens an interactive shell within the dataverse-1 container.
154+
This command opens an interactive shell within the dev_dataverse container.
155155

156156
\2. Navigate to the log files directory.
157157

doc/sphinx-guides/source/developers/tips.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Here's an example of using these credentials from within the PostgreSQL containe
124124

125125
.. code-block:: bash
126126
127-
pdurbin@beamish dataverse % docker exec -it postgres-1 bash
127+
pdurbin@beamish dataverse % docker exec -it dev_postgres bash
128128
root@postgres:/# export PGPASSWORD=secret
129129
root@postgres:/# psql -h localhost -U dataverse dataverse
130130
psql (16.3 (Debian 16.3-1.pgdg120+1))

docker/util/intellij/cpwebapp.sh

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,26 @@ PROJECT_DIR="$1"
99
FILE_TO_COPY="$2"
1010
RELATIVE_PATH="${FILE_TO_COPY#"${PROJECT_DIR}/"}"
1111

12-
# Check if RELATIVE_PATH starts with 'src/main/webapp', otherwise ignore
12+
# Only act on files under src/main/webapp
1313
if [[ "$RELATIVE_PATH" == "src/main/webapp"* ]]; then
14-
# Extract version from POM, so we don't need to have Maven on the PATH
15-
VERSION=$(grep -oPm1 "(?<=<revision>)[^<]+" "$PROJECT_DIR/modules/dataverse-parent/pom.xml")
14+
POM="$PROJECT_DIR/modules/dataverse-parent/pom.xml"
1615

17-
# Construct the target path by cutting off the local prefix and prepend with in-container path
18-
RELATIVE_PATH_WITHOUT_WEBAPP="${RELATIVE_PATH#src/main/webapp/}"
19-
TARGET_PATH="/opt/payara/appserver/glassfish/domains/domain1/applications/dataverse-$VERSION/${RELATIVE_PATH_WITHOUT_WEBAPP}"
16+
# Extract <revision> in a portable way
17+
VERSION="$(awk -F'[<>]' '/<revision>/{print $3; exit}' "$POM")"
2018

21-
# Copy file to container
22-
docker cp "$FILE_TO_COPY" "dev_dataverse:$TARGET_PATH"
19+
if [[ -z "${VERSION:-}" ]]; then
20+
echo "Error: Could not extract <revision> from $POM" >&2
21+
exit 1
22+
fi
23+
24+
CONTAINER="dev_dataverse"
25+
26+
# Build target path
27+
RELATIVE_PATH_WITHOUT_WEBAPP="${RELATIVE_PATH#src/main/webapp/}"
28+
TARGET_PATH="/opt/payara/appserver/glassfish/domains/domain1/applications/dataverse-$VERSION/${RELATIVE_PATH_WITHOUT_WEBAPP}"
29+
30+
# Copy file into container
31+
docker cp "$FILE_TO_COPY" "$CONTAINER:$TARGET_PATH"
32+
33+
echo "Copied $FILE_TO_COPY$CONTAINER:$TARGET_PATH"
2334
fi
Binary file not shown.

local_lib/io/gdcc/xoai-common/5.3.2.1-local/xoai-common-5.3.2.1-local.pom

Lines changed: 0 additions & 82 deletions
This file was deleted.
Binary file not shown.

local_lib/io/gdcc/xoai-data-provider/5.3.2.1-local/xoai-data-provider-5.3.2.1-local.pom

Lines changed: 0 additions & 72 deletions
This file was deleted.
Binary file not shown.

local_lib/io/gdcc/xoai-service-provider/5.3.2.1-local/xoai-service-provider-5.3.2.1-local.pom

Lines changed: 0 additions & 65 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)