jrushford commented on a change in pull request #5298: URL: https://github.com/apache/trafficcontrol/pull/5298#discussion_r564812933
########## File path: traffic_ops_ort/testing/docker/ort_test/Dockerfile ########## @@ -0,0 +1,56 @@ +# 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. +############################################################ +# Dockerfile to build Traffic Server container images +# as Edges for Traffic Control 1.4 +# Based on CentOS 6.6 +############################################################ + +# For cache, you may either use (RAM or disk) block devices or disk directories +# To use RAM block devices, pass them as /dev/ram0 and /dev/ram1 via `docker run --device` +# To use disk directories, simply don't pass devices, and the container will configure Traffic Server for directories + +# Block devices may be created on the native machine with, for example, `modprobe brd`. +# The recommended minimum size for each block devices is 1G. +# For example, `sudo modprobe brd rd_size=1048576 rd_nr=2` + +FROM centos:7 +MAINTAINER [email protected] + +RUN yum install -y epel-release # needed for perl-Crypt-ScryptKDF +RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm +RUN yum install -y initscripts +RUN yum install -y postgresql96.x86_64 +RUN yum install -y git +RUN yum install -y gcc +RUN yum install -y lua-5.1.4-15.el7 +RUN yum install -y lua-devel-5.1.4-15.el7 Review comment: @ocket8888 it works fine like it is an it's easy to see what's loaded. ########## File path: traffic_ops_ort/testing/docker/traffic_ops/Dockerfile ########## @@ -0,0 +1,75 @@ +# 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. + +############################################################ +# Dockerfile to build Traffic Ops container images +# Based on CentOS 7.2 +############################################################ + +# Example Build and Run: +# docker network create cdnet +# docker build --rm --tag traffic_ops:1.7.0 --build-arg=RPM=http://traffic-control-cdn.net/downloads/1.7.0/RELEASE-1.7.0/traffic_ops-1.7.0-3908.5b77f60f.x86_64.rpm traffic_ops +# +# docker run --name my-traffic-ops-mysql --hostname my-traffic-ops-mysql --net cdnet --env MYSQL_ROOT_PASSWORD=secretrootpass --detach mysql:5.5 +# +# docker run --name my-traffic-ops --hostname my-traffic-ops --net cdnet --publish 443:443 --env MYSQL_IP=my-traffic-ops-mysql --env MYSQL_PORT=3306 --env MYSQL_ROOT_PASS=secretrootpass --env MYSQL_TRAFFIC_OPS_PASS=supersecretpassword --env ADMIN_USER=superroot --env ADMIN_PASS=supersecreterpassward --env CERT_COUNTRY=US --env CERT_STATE=Colorado --env CERT_CITY=Denver --env CERT_COMPANY=NotComcast --env TRAFFIC_VAULT_PASS=marginallylesssecret --env DOMAIN=cdnet --detach traffic_ops:1.5.1 + +FROM centos/systemd +MAINTAINER [email protected] + +RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm +RUN yum install -y initscripts # needed for service command +RUN yum install -y epel-release # needed for perl-Crypt-ScryptKDF +RUN yum install -y perl-Crypt-ScryptKDF +RUN yum install -y perl cpanminus perl-Test-CPAN-Meta +RUN cpanm Carton +RUN yum install -y perl-DBIx-Connector Review comment: @ocket8888 it works fine like it is an it's easy to see what's loaded. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
