This is an automated email from the ASF dual-hosted git repository.
rshah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 8347b39d43 Fix paths for TPv2 in optional directory (#7938)
8347b39d43 is described below
commit 8347b39d43094291e186da471eb353a261af1e6e
Author: Zach Hoffman <[email protected]>
AuthorDate: Wed Feb 7 17:11:24 2024 -0700
Fix paths for TPv2 in optional directory (#7938)
* Fix paths for TPv2 in optional directory
* Prefix TPv2 RPM path with "optional/" in makefile
---
infrastructure/cdn-in-a-box/Makefile | 4 ++--
.../cdn-in-a-box/optional/docker-compose.traffic-portal-v2-test.yml | 2 +-
.../cdn-in-a-box/optional/docker-compose.traffic-portal-v2.yml | 6 +++---
infrastructure/cdn-in-a-box/optional/traffic_portal_v2/Dockerfile | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/infrastructure/cdn-in-a-box/Makefile
b/infrastructure/cdn-in-a-box/Makefile
index 7129d86c8f..dad40ab16d 100644
--- a/infrastructure/cdn-in-a-box/Makefile
+++ b/infrastructure/cdn-in-a-box/Makefile
@@ -86,7 +86,7 @@ ATS_RPM := cache/trafficserver.rpm
TM_RPM := traffic_monitor/traffic_monitor.rpm
TO_RPM := traffic_ops/traffic_ops.rpm
TP_RPM := traffic_portal/traffic_portal.rpm
-TP2_RPM := traffic_portal_v2/traffic_portal_v2.rpm
+TP2_RPM := optional/traffic_portal_v2/traffic_portal_v2.rpm
TR_RPM := traffic_router/traffic_router.rpm
TOMCAT_RPM := traffic_router/tomcat.rpm
TS_RPM := traffic_stats/traffic_stats.rpm
@@ -232,7 +232,7 @@ $(TP_DIST_RPM): $(TP_SOURCE)
"$(PKG_COMMAND)" $(PKG_FLAGS) traffic_portal$(BUILD_SUFFIX)
$(TP2_DIST_RPM): $(TP2_SOURCE)
- "$(PKG_COMMAND)" $(PKG_FLAGS) traffic_portal_v2$(BUILD_SUFFIX)
+ "$(PKG_COMMAND)" -o $(PKG_FLAGS) traffic_portal_v2$(BUILD_SUFFIX)
$(TR_DIST_RPM) $(TOMCAT_DIST_RPM): $(TR_SOURCE)
"$(PKG_COMMAND)" $(PKG_FLAGS) traffic_router$(BUILD_SUFFIX)
diff --git
a/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2-test.yml
b/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2-test.yml
index bfef10f0cb..c72bbf76b9 100644
---
a/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2-test.yml
+++
b/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2-test.yml
@@ -27,7 +27,7 @@ services:
BASE_IMAGE: ${BASE_IMAGE:-rockylinux}
RHEL_VERSION: ${RHEL_VERSION:-8}
env_file:
- - ../variables.env
+ - variables.env
environment:
SKIP_DIG_IP: 'true'
hostname: tpv2-e2e
diff --git
a/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2.yml
b/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2.yml
index b14a2768fa..e9a642ec1f 100644
--- a/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2.yml
+++ b/infrastructure/cdn-in-a-box/optional/docker-compose.traffic-portal-v2.yml
@@ -22,17 +22,17 @@ services:
trafficportalv2:
build:
context: .
- dockerfile: traffic_portal_v2/Dockerfile
+ dockerfile: optional/traffic_portal_v2/Dockerfile
args:
# Change BASE_IMAGE to centos when RHEL_VERSION=7
BASE_IMAGE: ${BASE_IMAGE:-rockylinux}
RHEL_VERSION: ${RHEL_VERSION:-8}
- TRAFFIC_PORTAL_RPM: traffic_portal_v2/traffic_portal_v2.rpm
+ TRAFFIC_PORTAL_RPM: optional/traffic_portal_v2/traffic_portal_v2.rpm
depends_on:
- enroller
domainname: infra.ciab.test
env_file:
- - ../variables.env
+ - variables.env
hostname: trafficportalv2
image: trafficportalv2
volumes:
diff --git a/infrastructure/cdn-in-a-box/optional/traffic_portal_v2/Dockerfile
b/infrastructure/cdn-in-a-box/optional/traffic_portal_v2/Dockerfile
index 7c366c6948..2b0625f1c3 100644
--- a/infrastructure/cdn-in-a-box/optional/traffic_portal_v2/Dockerfile
+++ b/infrastructure/cdn-in-a-box/optional/traffic_portal_v2/Dockerfile
@@ -34,7 +34,7 @@ RUN set -o pipefail && \
curl -sLf https://rpm.nodesource.com/setup_18.x | bash
# Override TRAFFIC_PORTAL_RPM arg to use a different one using --build-arg
TRAFFIC_PORTAL_RPM=... Can be local file or http://...
-ARG TRAFFIC_PORTAL_RPM=traffic_portal_v2/traffic_portal_v2.rpm
+ARG TRAFFIC_PORTAL_RPM=optional/traffic_portal_v2/traffic_portal_v2.rpm
ARG TO_HOST=$TO_HOST
@@ -57,7 +57,7 @@ RUN rpm -Uvh /$(basename $TRAFFIC_PORTAL_RPM) && \
rm /$(basename $TRAFFIC_PORTAL_RPM)
ADD enroller/server_template.json \
- traffic_portal_v2/run.sh \
+ optional/traffic_portal_v2/run.sh \
traffic_ops/to-access.sh /
COPY dns/set-dns.sh \