summaryrefslogtreecommitdiffstats
path: root/tests/topotests
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-12-01 16:54:58 +0100
committerChristian Franke <chris@opensourcerouting.org>2018-12-01 16:54:58 +0100
commit659782730bffea2d21e2fa22550db3166017061e (patch)
treefdcd391af3cf19131f559e85123497f881c4cbb5 /tests/topotests
parenttests/topotests: Update documentation (diff)
downloadfrr-659782730bffea2d21e2fa22550db3166017061e.tar.xz
frr-659782730bffea2d21e2fa22550db3166017061e.zip
tests/topotests: Change docker build context
In order to support automated builds, the build context needs to be the repository root. So adapt our dockerfile and buildscript for this. Also, add files which should not be included into the build context in .dockerignore to limit the size of the build context to something sensible. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'tests/topotests')
-rw-r--r--tests/topotests/Dockerfile2
-rwxr-xr-xtests/topotests/docker/build.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/topotests/Dockerfile b/tests/topotests/Dockerfile
index 72a876ed8..3613e23a6 100644
--- a/tests/topotests/Dockerfile
+++ b/tests/topotests/Dockerfile
@@ -70,7 +70,7 @@ RUN echo "" >> /etc/security/limits.conf; \
echo "root hard core unlimited" >> /etc/security/limits.conf
# Copy run scripts to facilitate users wanting to run the tests
-COPY docker/inner /opt/topotests
+COPY tests/topotests/docker/inner /opt/topotests
WORKDIR /root/topotests
ENV PATH "$PATH:/opt/topotests"
diff --git a/tests/topotests/docker/build.sh b/tests/topotests/docker/build.sh
index 344fb2ffc..3bb6dbaad 100755
--- a/tests/topotests/docker/build.sh
+++ b/tests/topotests/docker/build.sh
@@ -22,9 +22,10 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-cd "$(dirname "$0")"/..
+cd "$(dirname "$0")"/../../..
exec docker build --pull \
--compress \
-t frrouting/frr:topotests-latest \
+ -f tests/topotests/Dockerfile \
.