AbdelrahmanElawady commented on code in PR #7669: URL: https://github.com/apache/trafficcontrol/pull/7669#discussion_r1282885135
########## infrastructure/cdn-in-a-box/varnish/Dockerfile: ########## @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +ARG BASE_IMAGE=rockylinux \ + RHEL_VERSION=8 +FROM ${BASE_IMAGE}:${RHEL_VERSION} AS common-varnish-cache-config-layers +ARG RHEL_VERSION=8 +# Makes RHEL_VERSION available at runtime +ENV RHEL_VERSION="$RHEL_VERSION" + +RUN dnf module disable varnish -y && yum install -y epel-release + +RUN curl -s https://packagecloud.io/install/repositories/varnishcache/varnish73/script.rpm.sh | bash + +RUN yum install varnish-7.3.0-1.el8.x86_64 -y + +RUN dnf install -y bind-utils kyotocabinet-libs initscripts iproute net-tools nmap-ncat gettext autoconf automake libtool gcc-c++ cronie glibc-devel openssl-devel git perl && \ + dnf install -y jq logrotate findutils && \ + dnf clean all + + +COPY infrastructure/cdn-in-a-box/varnish/run.sh infrastructure/cdn-in-a-box/traffic_ops/to-access.sh infrastructure/cdn-in-a-box/enroller/server_template.json / + +COPY infrastructure/cdn-in-a-box/dns/set-dns.sh \ + infrastructure/cdn-in-a-box/dns/insert-self-into-dns.sh \ + /usr/local/sbin/ + + +COPY infrastructure/cdn-in-a-box/varnish/systemctl.sh /usr/bin/systemctl Review Comment: Since `t3c-apply` only manages services using `systemctl` (or `service` in sysV systems) Traffic Server image and Varnish image both include a script replacing `systemctl` to start, restart, show status, enable and stop the cache service. There is no actual invoking of systemd, the scripts just mimics the behavior of `systemctl` regarding services -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
