mirror of https://github.com/sipwise/prosody.git
Change-Id: If9efee71422fd2cf87e8be88b8d26c3a66091c87changes/58/18458/1
parent
7bc0a16eee
commit
cd32e763cd
@ -0,0 +1,38 @@
|
||||
# DOCKER_NAME=prosody-jessie
|
||||
FROM docker.mgm.sipwise.com/sipwise-jessie:latest
|
||||
|
||||
# Important! Update this no-op ENV variable when this Dockerfile
|
||||
# is updated with the current date. It will force refresh of all
|
||||
# of the base images and things like `apt-get update` won't be using
|
||||
# old cached versions when the Dockerfile is built.
|
||||
ENV REFRESHED_AT 2018-01-18
|
||||
|
||||
RUN echo "deb https://deb.sipwise.com/autobuild internal-jessie main" >>/etc/apt/sources.list
|
||||
RUN apt-get update && apt-get install --assume-yes lua-check
|
||||
|
||||
RUN echo './t/testrunner' >>/root/.bash_history
|
||||
|
||||
WORKDIR /code/
|
||||
|
||||
################################################################################
|
||||
# Instructions for usage
|
||||
# ----------------------
|
||||
# When you want to build the base image from scratch
|
||||
# jump to the next section if you don't want to build yourself!:
|
||||
#
|
||||
# you need to put the proper NGCP sources at t/sources.list.d/builddeps.list
|
||||
# for instance, trunk:
|
||||
# echo "deb https://deb.sipwise.com/autobuild/ release-trunk-jessie main" > t/sources.list.d/builddeps.list
|
||||
#
|
||||
# % docker build --tag="prosody-jessie" -f t/Dockerfile .
|
||||
# % docker run --rm -i -t -v $(pwd):/code:rw prosody-jessie:latest bash
|
||||
#
|
||||
# Use the existing docker image:
|
||||
# % docker pull docker.mgm.sipwise.com/prosody-jessie
|
||||
# NOTE: run the following command from root folder of git repository:
|
||||
# % docker run --rm -i -t -v $(pwd):/code:rw docker.mgm.sipwise.com/prosody-jessie:latest bash
|
||||
#
|
||||
# Inside docker (the command is in history, just press UP button):
|
||||
# ./t/testrunner
|
||||
#
|
||||
################################################################################
|
||||
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -d /results ] ; then
|
||||
# Running from Jenkins (RW)
|
||||
RESULTS="/results"
|
||||
else
|
||||
# Running locally in Docker
|
||||
RESULTS="./results"
|
||||
mkdir -p "${RESULTS}"
|
||||
fi
|
||||
|
||||
luacheck --formatter JUnit core plugins util > ${RESULTS}/prosody.luacheck
|
||||
Loading…
Reference in new issue