Skip to content

Commit

Permalink
fix build images script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Dec 4, 2023
1 parent b0ea242 commit 1753808
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compose/build_images_for_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ SOURCE=$(dirname "$SCRIPT")
PROJECT_ROOT=$(realpath ${SOURCE}/../)

# Repository server and authz library
docker build -f ${PROJECT_ROOT}/repository/docker/Dockerfile.repo-base.ubuntu ${PROJECT_ROOT}/repository/ -t datafed/repo-base:latest
docker build -f ${PROJECT_ROOT}/repository/docker/Dockerfile.repo-base.ubuntu ${PROJECT_ROOT} -t datafed/repo-base:latest
# Retag
docker tag datafed/repo-base:latest code.ornl.gov:4567/dlsw/datafed/repo-base:latest
docker build -f ${PROJECT_ROOT}/repository/docker/Dockerfile.repo.ubuntu ${PROJECT_ROOT}/repository/ -t datafed/repo:latest
docker build -f ${PROJECT_ROOT}/repository/docker/Dockerfile.repo.ubuntu ${PROJECT_ROOT} -t datafed/repo:latest

# Core and Web servers
REPO_LIST=("web" "core")
for REPO in "${REPO_LIST[@]}"
do
CONTAINER=${REPO}
docker build -f ${PROJECT_ROOT}/${REPO}/docker/Dockerfile.${REPO}-base.ubuntu ${PROJECT_ROOT}/${REPO}/ -t datafed/${CONTAINER}-base:latest
docker build -f ${PROJECT_ROOT}/${REPO}/docker/Dockerfile.${REPO}-base.ubuntu ${PROJECT_ROOT} -t datafed/${CONTAINER}-base:latest
# Retag
docker tag datafed/${CONTAINER}-base:latest code.ornl.gov:4567/dlsw/datafed/core-base:latest
docker build -f ${PROJECT_ROOT}/${REPO}/docker/Dockerfile.${REPO}.ubuntu ${PROJECT_ROOT}/${REPO}/ -t datafed/${CONTAINER}:latest
docker build -f ${PROJECT_ROOT}/${REPO}/docker/Dockerfile.${REPO}.ubuntu ${PROJECT_ROOT} -t datafed/${CONTAINER}:latest
done

# Python client
docker build -f ${PROJECT_ROOT}/python/docker/Dockerfile.python-client-base.ubuntu ${PROJECT_ROOT}/python/ -t datafed/python-client-base:latest
docker build -f ${PROJECT_ROOT}/python/docker/Dockerfile.python-client-base.ubuntu ${PROJECT_ROOT} -t datafed/python-client-base:latest
# Retag
docker tag datafed/python-client-base:latest code.ornl.gov:4567/dlsw/datafed/python-client:latest
docker build -f ${PROJECT_ROOT}/python/docker/Dockerfile.python-client.ubuntu ${PROJECT_ROOT}/python/ -t datafed/python-client:latest
docker build -f ${PROJECT_ROOT}/python/docker/Dockerfile.python-client.ubuntu ${PROJECT_ROOT} -t datafed/python-client:latest

0 comments on commit 1753808

Please sign in to comment.