Skip to content

Commit

Permalink
Install infra-requirements.txt in images subdirs.
Browse files Browse the repository at this point in the history
This accounts for both datahub and dev-r, and un-special-cases datahub.
  • Loading branch information
ryanlovett committed Oct 3, 2023
1 parent fe775f9 commit 77d598a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 138 deletions.
135 changes: 0 additions & 135 deletions deployments/dev-r/images/secondary/Dockerfile-

This file was deleted.

11 changes: 8 additions & 3 deletions scripts/infra-packages/sync.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ set -euxo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT_DIR="${SCRIPT_DIR}/../.."

find "${ROOT_DIR}/deployments" -type d -name 'image' -exec cp "${SCRIPT_DIR}/requirements.txt" {}/infra-requirements.txt \;
# install file in deployment directories named "image"
find "${ROOT_DIR}/deployments" -type d -name 'image' \
-exec echo cp "${SCRIPT_DIR}/requirements.txt" {}/infra-requirements.txt \;

# FIXME: Don't specialcase datahub!
cp ${SCRIPT_DIR}/requirements.txt ${ROOT_DIR}/deployments/datahub/images/default/infra-requirements.txt
# install file in subdirectories of deployment directories named "images"
for d in $(find "${ROOT_DIR}/deployments" -type d -name images); do
find $d -not -name images -maxdepth 1 -type d \
-exec echo cp "${SCRIPT_DIR}/requirements.txt" {}/infra-requirements.txt \;
done

0 comments on commit 77d598a

Please sign in to comment.