This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 355
Docker files for CentOS 8 build for 4.1.x #5137
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
infrastructure/docker/build/Dockerfile-traffic_monitor-el7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
| ### | ||
|
|
||
| ADD infrastructure/docker/build/clean_build.sh / | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
52
infrastructure/docker/build/Dockerfile-traffic_monitor-el8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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