[
https://issues.apache.org/jira/browse/TC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894680#comment-15894680
]
ASF GitHub Bot commented on TC-72:
----------------------------------
Github user alficles commented on the issue:
https://github.com/apache/incubator-trafficcontrol/pull/327
Here's what I do on the ats-rpmbuild side:
```
#!/usr/bin/env bash
if [ ! -d /src ]; then
echo "Source directory does not exist."
exit 1
fi
cp -r /src /build
cd /build
autoreconf -vfi
./configure --prefix=/opt/trafficserver --enable-experimental-plugins
--with-max-api-stats=4096
make DESTDIR=/artifacts -j install
```
So the idea is to mount the "live" folder, then copy it to a build folder,
build, and copy back the relevant artefacts.
> docker build to use local directory rather than cloning from github
> -------------------------------------------------------------------
>
> Key: TC-72
> URL: https://issues.apache.org/jira/browse/TC-72
> Project: Traffic Control
> Issue Type: Improvement
> Components: all
> Affects Versions: 1.9.0
> Reporter: Dan Kirkwood
> Assignee: Dan Kirkwood
> Priority: Minor
> Fix For: 1.9.0
>
>
> docker build of trafficcontrol requires connecting to github. Should be
> able to use the local directory instead.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)