Skip to content

Commit

Permalink
Fix paths for TPv2 in optional directory (#7938)
Browse files Browse the repository at this point in the history
* Fix paths for TPv2 in optional directory

* Prefix TPv2 RPM path with "optional/" in makefile
  • Loading branch information
zrhoffman authored Feb 8, 2024
1 parent 111a0f9 commit 8347b39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions infrastructure/cdn-in-a-box/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 8347b39

Please sign in to comment.