Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install infra-requirements.txt in images subdirs. #5098

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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 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 cp "${SCRIPT_DIR}/requirements.txt" {}/infra-requirements.txt \;
done