Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d1ceaa2
refactor: remove all scripts related to dependencies from DataFed repo
JoshuaSBrown Sep 25, 2025
80b0dbe
fix: recursively clone in github action.
JoshuaSBrown Sep 25, 2025
6027079
style: fix yaml formatting.
JoshuaSBrown Sep 25, 2025
9d9be3a
refactor: fully refactor containers
JoshuaSBrown Sep 26, 2025
97ca9c4
fix: make all submodules clone recursively. (#1645)
JoshuaSBrown Sep 26, 2025
748ba08
update: DataFedDependencies to 9d9be3a0221638c1d499c075f3e042b4bc22078e
JoshuaSBrown Sep 26, 2025
54dc9fb
update: update DataFed dependencies submodule with json fix.
JoshuaSBrown Sep 26, 2025
b9c872a
feature: update DataFedDependencies submodule and move ground truth o…
JoshuaSBrown Sep 29, 2025
80a09ab
fix: update the env variables used
JoshuaSBrown Sep 30, 2025
4166d81
fix: revert to opt/datafed/dependenices for install directory.
JoshuaSBrown Sep 30, 2025
d08263e
fix: double folder name.
JoshuaSBrown Sep 30, 2025
5572cb1
fix: ownership of dependencies install path.
JoshuaSBrown Sep 30, 2025
d2b0eb8
fix: adjust python dir in CI job.
JoshuaSBrown Sep 30, 2025
2e51b93
fix: provision client job.
JoshuaSBrown Sep 30, 2025
c3f7377
fix: add relevant paths to export before running client scripts
JoshuaSBrown Sep 30, 2025
78d35c0
fix: fix paths in foxx tests scripts.
JoshuaSBrown Sep 30, 2025
0e6bb70
fix: update DataFedDependencies.
JoshuaSBrown Sep 30, 2025
fea2611
style: fix formatting.
JoshuaSBrown Sep 30, 2025
efb3cb1
fix: correct reference to script.
JoshuaSBrown Sep 30, 2025
9e00643
fix: exchange PROJECT_ROOT with DATAFED_PROJECT_ROOT
JoshuaSBrown Sep 30, 2025
0938481
fix: point entrypoint_authz and correct dependency_versions.sh file l…
JoshuaSBrown Oct 1, 2025
2ad75de
fix: add missing DESTINATION keyword from file copy command in CMakeL…
JoshuaSBrown Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
./scripts/generate_datafed.sh
- name: Install documentation build dependencies
run: |
sudo ./scripts/install_docs_dependencies.sh
sudo ./external/DataFedDependencies/scripts/install_docs_dependencies.sh
- name: Build documentation
run: |
cmake -S. -B build -DBUILD_AUTHZ=OFF -DBUILD_CORE_SERVER=OFF -DBUILD_COMMON=OFF -DBUILD_DOCS=ON -DBUILD_FOXX=OFF -DBUILD_REPO_SERVER=OFF -DBUILD_PYTHON_CLIENT=ON -DBUILD_TESTS=OFF -DBUILD_WEB_SERVER=OFF -DENABLE_UNIT_TESTS=OFF
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
- name: Update debian
run: apt update
- name: Install dependencies
with:
submodules: recursive
fetch-depth: 0
run: |
./scripts/generate_datafed.sh
./scripts/install_core_dependencies.sh
./external/DataFedDependencies/scripts/install_core_dependencies.sh
- name: Build
run: |
/opt/datafed/dependencies/bin/cmake -S. -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_WEB_SERVER=OFF
Expand Down
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ variables:
REGISTRY: "camden.ornl.gov"
DATAFED_DEPENDENCIES_INSTALL_PATH: "/shared/install"
DOCKER_TLS_CERTDIR: "" # Required for running docker in docker
GIT_SUBMODULE_STRATEGY: recursive
1 change: 0 additions & 1 deletion .gitlab/build/build_gcs_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ build-gcs-base:
variables:
PROJECT: "datafed"
COMPONENT: "gcs-base"
GIT_SUBMODULE_STRATEGY: recursive
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
Expand Down
1 change: 0 additions & 1 deletion .gitlab/build/force_build_gcs_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ build-gcs-base:
variables:
PROJECT: "datafed"
COMPONENT: "gcs-base"
GIT_SUBMODULE_STRATEGY: recursive
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
GCS_BASE_IMAGE_DISTRO: "debian-12"
Expand Down
12 changes: 7 additions & 5 deletions .gitlab/stage_provision_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ provision-client:
variables:
GIT_STRATEGY: clone
DATAFED_PYTHON_DEPENDENCIES_DIR: "${CI_PROJECT_DIR}/dependencies/python"
DATAFED_DEPENDENCIES_INSTALL_PATH: "/opt/datafed/dependencies/"
stage: provision-client
tags:
- ci-datafed-client
before_script:
- export PATH=/opt/datafed/dependencies/bin:$PATH
- rm -rf $DATAFED_PYTHON_DEPENDENCIES_DIR
- sudo chown -R gitlab-runner:gitlab-runner "$DATAFED_DEPENDENCIES_INSTALL_PATH"
- rm -rf "$DATAFED_PYTHON_DEPENDENCIES_DIR"
script:
- ./scripts/generate_datafed.sh
- ./scripts/install_client_dependencies.sh
- ./scripts/install_end_to_end_test_dependencies.sh
- export PATH="/opt/datafed/dependencies/bin:$DATAFED_PYTHON_DEPENDENCIES_DIR/bin:$PATH"
- ./external/DataFedDependencies/scripts/generate_dependencies_config.sh
- ./external/DataFedDependencies/scripts/install_client_dependencies.sh
- ./external/DataFedDependencies/scripts/install_end_to_end_test_dependencies.sh
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "external/globus-connect-server-deploy"]
path = external/globus-connect-server-deploy
url = https://github.com/globus/globus-connect-server-deploy.git
[submodule "external/protobuf"]
path = external/protobuf
url = https://github.com/protocolbuffers/protobuf.git
[submodule "external/DataFedDependencies"]
path = external/DataFedDependencies
url = https://github.com/ORNL/DataFedDependencies.git
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ if(NOT EXISTS ${DATAFED_CONFIG_SH})
"${PROJECT_SOURCE_DIR}/scripts/generate_datafed.sh")
endif()

file(READ "${PROJECT_SOURCE_DIR}/scripts/dependency_versions.sh" DEPENDENCY_VERSIONS)
set(DATAFED_DEPENDENCIES_SH "${DataFed_SOURCE_DIR}/external/DataFedDependencies/config/dependencies.sh")
if(NOT EXISTS ${DATAFED_DEPENDENCIES_SH})
message(FATAL_ERROR "Error: File '${DATAFED_DEPENDENCIES_SH}' does not exist. "
"Please run generate_dependencies.sh first to populate defaults."
"${PROJECT_SOURCE_DIR}/external/DataFedDependencies/scripts/generate_datafed.sh")
endif()

file(READ "${PROJECT_SOURCE_DIR}/external/DataFedDependencies/scripts/dependency_versions.sh" DEPENDENCY_VERSIONS)

get_version_from_script(${DEPENDENCY_VERSIONS} "DATAFED_DYNAMIC_LIBRARY_PROTOBUF_VERSION" PROTOBUF_LIBRARY_VERSION)
get_version_from_script(${DEPENDENCY_VERSIONS} "DATAFED_PROTOBUF_VERSION" PROTOBUF_COMPILER_VERSION)
Expand All @@ -76,7 +83,7 @@ if(NOT DEFINED DATAFED_DOMAIN)
endif()

if(NOT DEFINED DATAFED_DEPENDENCIES_INSTALL_PATH)
get_value_from_datafed_sh("DATAFED_DEPENDENCIES_INSTALL_PATH" DEPENDENCY_INSTALL_PATH)
get_value_from_dependencies_sh("DATAFED_DEPENDENCIES_INSTALL_PATH" DEPENDENCY_INSTALL_PATH)
endif()

set(CMAKE_PREFIX_PATH "${DEPENDENCY_INSTALL_PATH}")
Expand Down Expand Up @@ -187,6 +194,7 @@ endif()

if( BUILD_PYTHON_CLIENT )
# make target = pydatafed
file(COPY ${PROJECT_SOURCE_DIR}/external/DataFedDependencies/python/datafed_pkg/requirements.txt DESTINATION ${PROJECT_SOURCE_DIR}/python/datafed_pkg/requirements.txt)
add_subdirectory( python EXCLUDE_FROM_ALL )
endif()

Expand Down
21 changes: 21 additions & 0 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,24 @@ function(get_value_from_datafed_sh INPUT_KEY OUTPUT_VALUE)
set(${OUTPUT_VALUE} "${OUTPUT_VAR}" PARENT_SCOPE)
endfunction()

# Function will get exported value from a shell script
#
# i.e. if dependencies.sh has
#
# dependencies.sh
# export MY_NAME="Barry"
#
# set(DATAFED_CONFIG_SH "external/DataFedDependencies/config/dependencies.sh")
# get_value_from_dependencies_sh "MY_NAME" name)
# message("$name")
#
# Will output "Barry"
function(get_value_from_dependencies_sh INPUT_KEY OUTPUT_VALUE)
execute_process(
COMMAND bash "-c" "source ${DATAFED_CONFIG_SH} && echo \$${INPUT_KEY}"
OUTPUT_VARIABLE OUTPUT_VAR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(${OUTPUT_VALUE} "${OUTPUT_VAR}" PARENT_SCOPE)
endfunction()

10 changes: 5 additions & 5 deletions core/database/tests/test_fixture_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -uef -o pipefail

SCRIPT=$(realpath "$BASH_SOURCE[0]")
SOURCE=$(dirname "$SCRIPT")
PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${PROJECT_ROOT}/config/datafed.sh"
source "${PROJECT_ROOT}/scripts/dependency_versions.sh"
source "${PROJECT_ROOT}/scripts/dependency_install_functions.sh"
DATAFED_PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${DATAFED_PROJECT_ROOT}/config/datafed.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_versions.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_install_functions.sh"

Help() {
echo "$(basename $0) Will initialize fixtures for Foxx tests"
Expand Down Expand Up @@ -42,7 +42,7 @@ else
fi

if [ -z "${FOXX_MAJOR_API_VERSION:-}" ]; then
local_FOXX_MAJOR_API_VERSION=$(cat ${PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
local_FOXX_MAJOR_API_VERSION=$(cat ${DATAFED_PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
else
local_FOXX_MAJOR_API_VERSION=$(printenv FOXX_MAJOR_API_VERSION)
fi
Expand Down
10 changes: 5 additions & 5 deletions core/database/tests/test_foxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ set -euf -o pipefail

SCRIPT=$(realpath "$BASH_SOURCE[0]")
SOURCE=$(dirname "$SCRIPT")
PROJECT_ROOT=$(realpath ${SOURCE}/../../../)
source ${PROJECT_ROOT}/config/datafed.sh
source "${PROJECT_ROOT}/scripts/dependency_versions.sh"
source "${PROJECT_ROOT}/scripts/dependency_install_functions.sh"
DATAFED_PROJECT_ROOT=$(realpath ${SOURCE}/../../../)
source "${DATAFED_PROJECT_ROOT}/config/datafed.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_versions.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_install_functions.sh"

Help() {
echo "$(basename $0) Will run a Foxx unit test"
Expand Down Expand Up @@ -46,7 +46,7 @@ else
fi

if [ -z "${FOXX_MAJOR_API_VERSION:-}" ]; then
local_FOXX_MAJOR_API_VERSION=$(cat ${PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
local_FOXX_MAJOR_API_VERSION=$(cat ${DATAFED_PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
else
local_FOXX_MAJOR_API_VERSION=$(printenv FOXX_MAJOR_API_VERSION)
fi
Expand Down
12 changes: 6 additions & 6 deletions core/database/tests/test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ set -uef -o pipefail

SCRIPT=$(realpath "$BASH_SOURCE[0]")
SOURCE=$(dirname "$SCRIPT")
PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${PROJECT_ROOT}/config/datafed.sh"
source "${PROJECT_ROOT}/scripts/dependency_versions.sh"
source "${PROJECT_ROOT}/scripts/dependency_install_functions.sh"
DATAFED_PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${DATAFED_PROJECT_ROOT}/config/datafed.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_versions.sh"
source "${DATAFED_PROJECT_ROOT}/external/DataFedDependencies/scripts/dependency_install_functions.sh"

Help() {
echo "$(basename $0) Will set up a configuration file for the core server"
Expand Down Expand Up @@ -52,7 +52,7 @@ else
fi

if [ -z "${FOXX_MAJOR_API_VERSION:-}" ]; then
local_FOXX_MAJOR_API_VERSION=$(cat ${PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
local_FOXX_MAJOR_API_VERSION=$(cat ${DATAFED_PROJECT_ROOT}/cmake/Version.cmake | grep -o -P "(?<=FOXX_API_MAJOR).*(?=\))" | xargs)
else
local_FOXX_MAJOR_API_VERSION=$(printenv FOXX_MAJOR_API_VERSION)
fi
Expand Down Expand Up @@ -115,7 +115,7 @@ if [[ "$output" =~ .*"sdms".* ]]; then
echo "SDMS already exists do nothing"
else
echo "Creating SDMS"
arangosh --server.endpoint "tcp://${local_DATAFED_DATABASE_HOST}:8529" --server.password "${local_DATAFED_DATABASE_PASSWORD}" --server.username "${local_DATABASE_USER}" --javascript.execute "${PROJECT_ROOT}/core/database/foxx/db_create.js"
arangosh --server.endpoint "tcp://${local_DATAFED_DATABASE_HOST}:8529" --server.password "${local_DATAFED_DATABASE_PASSWORD}" --server.username "${local_DATABASE_USER}" --javascript.execute "${DATAFED_PROJECT_ROOT}/core/database/foxx/db_create.js"
# Give time for the database to be created
sleep 2
arangosh --server.endpoint "tcp://${local_DATAFED_DATABASE_HOST}:8529" --server.password "${local_DATAFED_DATABASE_PASSWORD}" --server.username "${local_DATABASE_USER}" --javascript.execute-string 'db._useDatabase("sdms"); db.config.insert({"_key": "msg_daily", "msg" : "DataFed servers will be off-line for regular maintenance every Sunday night from 11:45 pm until 12:15 am EST Monday morning."}, {overwrite: true});'
Expand Down
4 changes: 2 additions & 2 deletions core/database/tests/test_teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ set -euf -o pipefail

SCRIPT=$(realpath "$0")
SOURCE=$(dirname "$SCRIPT")
PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${PROJECT_ROOT}/config/datafed.sh"
DATAFED_PROJECT_ROOT=$(realpath "${SOURCE}/../../../")
source "${DATAFED_PROJECT_ROOT}/config/datafed.sh"

PATH_TO_PASSWD_FILE="${SOURCE}/database_temp.password"
rm "${PATH_TO_PASSWD_FILE}"
49 changes: 30 additions & 19 deletions core/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# cd ${PROJECT_ROOT} or cd DataFed
# docker build -f core/docker/Dockerfile .

ARG BUILD_BASE="debian:bookworm-slim"
ARG DEPENDENCIES="dependencies"
ARG RUNTIME="runtime"
ARG DATAFED_DIR="/datafed"
ARG DATAFED_INSTALL_PATH="/opt/datafed"
ARG BUILD_BASE="debian:bookworm-slim"
ARG DEPENDENCIES="dependencies"
ARG RUNTIME="runtime"
ARG DATAFED_DIR="/datafed"
ARG DATAFED_INSTALL_PATH="/opt/datafed"
ARG DATAFED_DEPENDENCIES_INSTALL_PATH="/opt/datafed/dependencies"
ARG GCS_IMAGE="code.ornl.gov:4567/dlsw/datafed/gcs-ubuntu-focal"
ARG BUILD_DIR="$DATAFED_DIR/source"
ARG LIB_DIR="/usr/local/lib"
ARG BUILD_DIR="$DATAFED_DIR/source"
ARG DATAFED_DEPENDENCIES_ROOT="$BUILD_DIR/external/DataFedDependencies"
ARG GCS_IMAGE="code.ornl.gov:4567/dlsw/datafed/gcs-ubuntu-focal"
ARG LIB_DIR="/usr/local/lib"

FROM ${DEPENDENCIES} AS core-build

Expand All @@ -20,33 +21,38 @@ ARG DATAFED_DIR
ARG BUILD_DIR
ARG DATAFED_INSTALL_PATH
ARG DATAFED_DEPENDENCIES_INSTALL_PATH
ARG DATAFED_DEPENDENCIES_ROOT

ENV DATAFED_INSTALL_PATH="${DATAFED_INSTALL_PATH}"
# For communicating with repo server
EXPOSE 7512
# For listening to web server
EXPOSE 7513

RUN mkdir -p ${DATAFED_DEPENDENCIES_ROOT}/scripts/ && \
mv ./scripts/dependency_versions.sh ${DATAFED_DEPENDENCIES_ROOT}/scripts/ && \
mv ./scripts/generate_dependencies_config.sh ${DATAFED_DEPENDENCIES_ROOT}/scripts/

COPY ./common ${BUILD_DIR}/common
COPY ./core/CMakeLists.txt ${BUILD_DIR}/core/CMakeLists.txt
COPY ./CMakeLists.txt ${BUILD_DIR}
COPY ./scripts/dependency_versions.sh ${BUILD_DIR}/scripts/
COPY ./scripts/generate_datafed.sh ${BUILD_DIR}/scripts/
COPY ./scripts/generate_core_config.sh ${BUILD_DIR}/scripts/
COPY ./scripts/install_core.sh ${BUILD_DIR}/scripts/
COPY ./cmake ${BUILD_DIR}/cmake
COPY ./core/docker/entrypoint.sh ${BUILD_DIR}/core/docker/
COPY ./core/server ${BUILD_DIR}/core/server

RUN ${BUILD_DIR}/scripts/generate_datafed.sh && \
${DATAFED_DEPENDENCIES_INSTALL_PATH}/bin/cmake -S. -B build \
-DBUILD_REPO_SERVER=False \
-DBUILD_AUTHZ=False \
-DBUILD_CORE_SERVER=True \
-DBUILD_WEB_SERVER=False \
-DBUILD_DOCS=False \
-DBUILD_PYTHON_CLIENT=False \
-DBUILD_FOXX=False
RUN ${DATAFED_DEPENDENCIES_ROOT}/scripts/generate_dependencies_config.sh && \
${BUILD_DIR}/scripts/generate_datafed.sh && \
${DATAFED_DEPENDENCIES_INSTALL_PATH}/bin/cmake -S. -B build \
-DBUILD_REPO_SERVER=False \
-DBUILD_AUTHZ=False \
-DBUILD_CORE_SERVER=True \
-DBUILD_WEB_SERVER=False \
-DBUILD_DOCS=False \
-DBUILD_PYTHON_CLIENT=False \
-DBUILD_FOXX=False
RUN ${DATAFED_DEPENDENCIES_INSTALL_PATH}/bin/cmake --build build -j 8
RUN ${DATAFED_DEPENDENCIES_INSTALL_PATH}/bin/cmake --build build --target install

Expand All @@ -56,13 +62,15 @@ SHELL ["/bin/bash", "-c"]

ARG DATAFED_DIR
ARG DATAFED_INSTALL_PATH
ARG DATAFED_DEPENDENCIES_ROOT
ARG DATAFED_DEPENDENCIES_INSTALL_PATH
ARG BUILD_DIR
ARG LIB_DIR

# The above should also be available at runtime
ENV DATAFED_INSTALL_PATH="$DATAFED_INSTALL_PATH"
ENV DATAFED_DEPENDENCIES_INSTALL_PATH="${DATAFED_DEPENDENCIES_INSTALL_PATH}"
ENV DATAFED_DEPENDENCIES_ROOT="${DATAFED_DEPENDENCIES_ROOT}"
ENV DATAFED_DIR="$DATAFED_DIR"
ENV BUILD_DIR="$BUILD_DIR"
ENV LIB_DIR="$LIB_DIR"
Expand All @@ -77,18 +85,21 @@ COPY --chown=datafed:root ./scripts/generate_core_config.sh ${BUILD_DIR}/scripts
COPY --chown=datafed:root ./scripts/install_core.sh ${BUILD_DIR}/scripts/install_core.sh
COPY --chown=datafed:root ./cmake/Version.cmake ${BUILD_DIR}/cmake/Version.cmake
COPY --from=core-build --chown=datafed:root ${BUILD_DIR}/core/docker/entrypoint.sh ${BUILD_DIR}/core/docker/entrypoint.sh
COPY --from=core-build --chown=datafed:root ${DATAFED_DEPENDENCIES_ROOT}/scripts ${DATAFED_DEPENDENCIES_ROOT}/scripts
COPY --from=core-build --chown=datafed:root ${DATAFED_INSTALL_PATH}/core/datafed-core ${DATAFED_INSTALL_PATH}/core/datafed-core

USER root


RUN chown -R datafed:root ${DATAFED_DIR} /opt /home/datafed && \
RUN chown -R datafed:root ${DATAFED_DIR} /opt /home/datafed \
${DATAFED_DEPENDENCIES_ROOT} && \
chmod 774 ${DATAFED_DIR} ${BUILD_DIR} ${BUILD_DIR}/core/docker/entrypoint.sh \
${DATAFED_INSTALL_PATH}/core/datafed-core \
${BUILD_DIR}/scripts/generate_datafed.sh \
${BUILD_DIR}/scripts/generate_core_config.sh \
${BUILD_DIR}/scripts/install_core.sh \
${DATAFED_INSTALL_PATH}/core && \
find ${DATAFED_DEPENDENCIES_ROOT} -type d -exec chmod 0774 {} + && \
chmod 664 ${BUILD_DIR}/cmake/Version.cmake && \
chmod +t ${DATAFED_DIR} ${DATAFED_INSTALL_PATH}

Expand Down
6 changes: 3 additions & 3 deletions doc_source/source/admin/install_bare_metal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ The npm packages needed primarily by the web server are:

This can be done with a helper scripts these scripts are for ubuntu::

./DataFed/scripts/install_core_dependencies.sh
./DataFed/scripts/install_repo_dependencies.sh
./DataFed/scripts/install_ws_dependencies.sh
./DataFed/external/DataFedDependencies/scripts/install_core_dependencies.sh
./DataFed/external/DataFedDependencies/scripts/install_repo_dependencies.sh
./DataFed/external/DataFedDependencies/scripts/install_ws_dependencies.sh

The next step is to enter configuration options that are listed in ./config/datafed.sh. To
generate a template for this file you will first need to run::
Expand Down
Loading