Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] common/travis/docker.sh: add control variables
Date: Fri, 27 Sep 2019 19:07:01 +0200	[thread overview]
Message-ID: <20190927170701.Kzg-0pkPjLbPkHq6tGY0Js9u5vj3GjDLil8E0UGdOoU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14742@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

There is an updated pull request by bobertlo against master on the void-packages repository

https://github.com/bobertlo/void-packages travis-docker
https://github.com/void-linux/void-packages/pull/14742

common/travis/docker.sh: add control variables
for more flexible local testing using existing tools

A patch file from https://github.com/void-linux/void-packages/pull/14742.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-travis-docker-14742.patch --]
[-- Type: text/x-diff, Size: 1207 bytes --]

From 913a317e50cdfd251dea1ba201965a46833e07f0 Mon Sep 17 00:00:00 2001
From: Robert Lowry <bobertlo@gmail.com>
Date: Thu, 26 Sep 2019 11:19:54 -0500
Subject: [PATCH] common/travis/docker.sh: add control variables

for more flexible local testing using existing tools
---
 common/travis/docker.sh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/common/travis/docker.sh b/common/travis/docker.sh
index 1784cd4a54e..70e81f41c04 100755
--- a/common/travis/docker.sh
+++ b/common/travis/docker.sh
@@ -4,13 +4,16 @@
 
 [ "$XLINT" ] && exit 0
 
-/bin/echo -e "\x1b[32mPulling docker image for $BOOTSTRAP from $TAG...\x1b[0m"
-docker pull voidlinux/masterdir-$BOOTSTRAP:$TAG
+DOCKER_IMAGE_BASE=${DOCKER_IMAGE_BASE:-voidlinux/masterdir}
+DOCKER_NAME=${DOCKER_NAME:-void}
+
+/bin/echo -e "\x1b[32mPulling docker image $DOCKER_IMAGE_BASE-$BOOTSTRAP:$TAG...\x1b[0m"
+docker pull $DOCKER_IMAGE_BASE-$BOOTSTRAP:$TAG
 docker run -d \
-	   --name void \
+	   --name $DOCKER_NAME \
 	   -v "$(pwd)":/hostrepo \
 	   -v /tmp:/tmp \
 	   -e XLINT="$XLINT" \
 	   -e PATH="$PATH" \
-	   voidlinux/masterdir-$BOOTSTRAP:$TAG \
+	   $DOCKER_IMAGE_BASE-$BOOTSTRAP:$TAG \
 	   /bin/sh -c 'sleep inf'

  reply	other threads:[~2019-09-27 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-26 16:32 [PR PATCH] " voidlinux-github
2019-09-27 17:07 ` voidlinux-github [this message]
2019-09-27 17:07 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-28  4:17 ` voidlinux-github
2019-09-28  4:17 ` voidlinux-github
2019-10-21 16:32 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190927170701.Kzg-0pkPjLbPkHq6tGY0Js9u5vj3GjDLil8E0UGdOoU@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).