Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Removed github token from docker run tests script
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyfay committed Dec 7, 2015
1 parent e104776 commit d1d308d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV SNAP_PATH=/go/src/github.com/intelsdi-x/snap/build
RUN apt-get update && \
apt-get -y install facter
WORKDIR /go/src/github.com/intelsdi-x/
RUN git clone https://<GIT_TOKEN>@github.com/intelsdi-x/gomit.git
RUN git clone https://github.com/intelsdi-x/gomit.git
WORKDIR /go/src/github.com/intelsdi-x/snap
ADD . /go/src/github.com/intelsdi-x/snap
RUN go get github.com/tools/godep && \
Expand Down
17 changes: 1 addition & 16 deletions scripts/run_tests_with_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,5 @@
#See the License for the specific language governing permissions and
#limitations under the License.

die() {
echo >&2 $@
exit 1
}

if [ $# -eq 2 ]; then
GIT_TOKEN=$1
fi

if [ -z "${GIT_TOKEN}" ]; then
die "arg missing: github token is required so we can clone a private repo)"
fi

sed s/\<GIT_TOKEN\>/${GIT_TOKEN}/ scripts/Dockerfile > scripts/Dockerfile.tmp
docker build -t intelsdi-x/snap-test -f scripts/Dockerfile.tmp .
rm scripts/Dockerfile.tmp
docker build -t intelsdi-x/snap-test -f scripts/Dockerfile .
docker run -it intelsdi-x/snap-test scripts/test.sh

0 comments on commit d1d308d

Please sign in to comment.