Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_monitor-el7
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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.
FROM centos:7

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
yum -y update ca-certificates && \
yum -y install \
epel-release && \
yum -y clean all

### traffic_monitor specific requirements
RUN yum -y install \
# gcc is necessary in case -gcflags 'all=-N -l' is passed to go build
gcc \
git \
rpm-build && \
yum -y clean all

RUN curl -LO https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \
tar -C /usr/local -xvzf go1.14.2.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
rm go1.14.2.linux-amd64.tar.gz
Comment on lines +41 to +44
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some recent modifications to upgrade to Golang 15


###

ADD infrastructure/docker/build/clean_build.sh /
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On master this script was moved to build/clean_build.sh

CMD /clean_build.sh traffic_monitor

# vi:syntax=Dockerfile
52 changes: 52 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_monitor-el8
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.
FROM centos:8

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 && \
yum -y update ca-certificates && \
yum -y install \
epel-release \
rsync && \
yum -y clean all

### traffic_monitor specific requirements
RUN yum -y install \
# gcc is necessary in case -gcflags 'all=-N -l' is passed to go build
gcc \
git \
rpm-build && \
yum -y clean all

RUN curl -LO https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \
tar -C /usr/local -xvzf go1.14.2.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
rm go1.14.2.linux-amd64.tar.gz

Comment on lines +42 to +46
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some recent modifications to upgrade to Golang 15

###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_monitor

# vi:syntax=Dockerfile
56 changes: 56 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_ops-el7
Original file line number Diff line number Diff line change
@@ -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.
FROM centos:7

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
yum -y update ca-certificates && \
yum -y install \
epel-release && \
yum -y clean all

### traffic_ops specific requirements
RUN yum -y install \
expat-devel \
gcc \
git \
libcurl-devel \
make \
openssl-devel \
perl-ExtUtils-MakeMaker \
rpm-build \
tar && \
yum -y clean all

RUN curl -LO https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \
tar -C /usr/local -xvzf go1.14.2.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
rm go1.14.2.linux-amd64.tar.gz
Comment on lines +46 to +49
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some recent modifications to upgrade to Golang 15


###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_ops

# vi:syntax=Dockerfile
57 changes: 57 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_ops-el8
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.
FROM centos:8

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 && \
yum -y update ca-certificates && \
yum -y install \
epel-release \
rsync && \
yum -y clean all

### traffic_ops specific requirements
RUN yum -y install \
expat-devel \
gcc \
git \
libcurl-devel \
make \
openssl-devel \
perl-ExtUtils-MakeMaker \
rpm-build \
tar && \
yum -y clean all

RUN curl -LO https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \
tar -C /usr/local -xvzf go1.14.2.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
rm go1.14.2.linux-amd64.tar.gz
Comment on lines +47 to +50
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some recent modifications to upgrade to Golang 15


###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_ops

# vi:syntax=Dockerfile
60 changes: 60 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_portal-el7
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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.
FROM centos:7

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
yum -y update ca-certificates && \
yum -y install \
epel-release && \
yum -y clean all

# traffic_portal specific
RUN yum -y install \
gcc \
git \
libffi-devel \
make \
nodejs \
npm \
rpm-build \
ruby-devel \
rubygems

RUN gem install \
# FFI 1.13 cannot be installed with Ruby 2.0
ffi:1.12.2 \
rb-inotify:0.9.10 \
compass && \
npm -g install bower grunt-cli

# bower will not run as root by default
RUN echo '{ "allow_root": true }' > /root/.bowerrc

###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_portal

# vi:syntax=Dockerfile
63 changes: 63 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_portal-el8
Original file line number Diff line number Diff line change
@@ -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.
FROM centos:8

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 && \
yum -y update ca-certificates && \
yum -y install \
epel-release \
rsync && \
yum -y clean all

# traffic_portal specific
RUN yum -y install \
gcc \
git \
libffi-devel \
make \
nodejs \
npm \
rpm-build \
ruby-devel \
rubygems

RUN gem install \
# FFI 1.13 cannot be installed with Ruby 2.0
ffi:1.12.2 \
rb-inotify:0.9.10 \
compass && \
npm -g install bower grunt-cli && \
cd /usr/bin; ln -s /usr/local/bin/bower && \
ln -s /usr/local/bin/grunt

# bower will not run as root by default
RUN echo '{ "allow_root": true }' > /root/.bowerrc

###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_portal

# vi:syntax=Dockerfile
53 changes: 53 additions & 0 deletions infrastructure/docker/build/Dockerfile-traffic_router-el7
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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.
FROM centos:7

MAINTAINER dev@trafficcontrol.apache.org

# top level of trafficcontrol directory must be mounted as a volume:
# docker run --volume /trafficcontrol:$(pwd) ...
VOLUME /trafficcontrol

### Common for all sub-component builds
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
yum -y update ca-certificates && \
yum -y install \
epel-release && \
yum -y clean all

### traffic_router specific requirements
RUN yum -y install \
which \
curl \
git \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
rpm-build && \
yum -y clean all

ENV JAVA_HOME=/usr/lib/jvm/java
WORKDIR /opt
RUN curl -L https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.tar.gz | tar xzf - && \
alternatives --install /usr/bin/mvn mvn /opt/apache-maven*/bin/mvn 1

###

ADD infrastructure/docker/build/clean_build.sh /
CMD /clean_build.sh traffic_router

# vi:syntax=Dockerfile
Loading