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 356
Prebuild trafficserver for Dev CDN-in-a-Box #6699
Merged
ocket8888
merged 20 commits into
apache:master
from
zrhoffman:ghcr.io/apache/trafficcontrol/ci/trafficserver-alpine
Apr 1, 2022
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ddad1c3
GHA workflow to build ghcr.io/apache/trafficcontrol/ci/trafficserver-…
zrhoffman 43d04c3
Get trafficserver from ghcr.io/apache/trafficcontrol/ci/trafficserver…
zrhoffman 91ef84b
Log into ghcr.io before pushing the image
zrhoffman 06dc5b4
Base t3c image on trafficserver-alpine image
zrhoffman 3b78682
Other simplifications
zrhoffman 314e9a7
Do not push to the repository on pull requests
zrhoffman d1b60b2
Set username to repository owner
zrhoffman 9d1b0fe
Only modify GO_VERSION value in env file when updating the Go version
zrhoffman 9c35f74
Load environment from env file
zrhoffman 02545c9
Include ATS version tag in step names
zrhoffman 137bb0a
Reuse arguments with dict double pointer
zrhoffman 7256b2b
Update GO_VERSION and .env files in single commit
zrhoffman 1210ef1
Reformat file
zrhoffman 99e26e5
Re-add make dependency
zrhoffman 28c76c2
Do not include author and committer if no author is provided
zrhoffman 167ca6d
Make return type optional
zrhoffman d733c56
Add to dict using dict.update()
zrhoffman 190640b
Make env_path PathLike
zrhoffman 3070bf9
Do not use more than one type in kwargs
zrhoffman b105089
Import set_key() directly
zrhoffman 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
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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| ATS_VERSION=9.1.2 | ||
| GO_VERSION=1.18 | ||
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
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
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
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
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 alpine:latest AS build-trafficserver | ||
| ARG ATS_VERSION | ||
| ADD https://downloads.apache.org/trafficserver/trafficserver-${ATS_VERSION}.tar.bz2 /tmp/ | ||
| RUN set -o errexit -o nounset; \ | ||
| cd tmp; \ | ||
| dirname=trafficserver-${ATS_VERSION}; \ | ||
| tar xf ${dirname}.tar.bz2; \ | ||
| rm ${dirname}.tar.bz2; \ | ||
| apk add --no-cache \ | ||
| # configure dependencies | ||
| g++ \ | ||
| perl \ | ||
| openssl-dev \ | ||
| pcre-dev \ | ||
| make \ | ||
| # build dependencies | ||
| libexecinfo-dev \ | ||
| fortify-headers \ | ||
| linux-headers \ | ||
| zlib-dev; \ | ||
| cd $dirname; \ | ||
| ./configure \ | ||
| --disable-tests \ | ||
| --enable-experimental-plugins \ | ||
| --prefix=/ \ | ||
| --with-user=ats \ | ||
| --with-group=ats; \ | ||
| make -j; \ | ||
| adduser -D ats; \ | ||
| make install DESTDIR=/tmp/built; \ | ||
| cd ..; \ | ||
| rm -r $dirname | ||
|
|
||
| FROM alpine:latest | ||
| COPY --from=build-trafficserver /tmp/built/ / | ||
| RUN apk add --no-cache \ | ||
| # runtime dependencies | ||
| libexecinfo \ | ||
| libstdc++ \ | ||
| pcre && \ | ||
| adduser -D ats | ||
| USER ats | ||
| CMD /bin/traffic_server |
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.
Uh oh!
There was an error while loading. Please reload this page.