openvidu-test-e2e images Docker installation

pull/508/head
pabloFuente 2020-07-02 17:11:18 +02:00
parent 1d92b7e932
commit ce91f10005
3 changed files with 9 additions and 3 deletions

View File

@ -39,9 +39,12 @@ RUN add-apt-repository ppa:jonathonf/ffmpeg-4
RUN apt-get update RUN apt-get update
RUN apt-get install -y ffmpeg RUN apt-get install -y ffmpeg
# docker
RUN apt-get update && apt-get -y install docker.io
# Cleanup # Cleanup
RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y RUN apt-get autoremove --purge -y && apt-get autoclean
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN ["chmod", "+x", "/entrypoint.sh"] RUN ["chmod", "+x", "/entrypoint.sh"]

View File

@ -39,9 +39,12 @@ RUN add-apt-repository ppa:jonathonf/ffmpeg-4
RUN apt-get update RUN apt-get update
RUN apt-get install -y ffmpeg RUN apt-get install -y ffmpeg
# docker
RUN apt-get update && apt-get -y install docker.io
# Cleanup # Cleanup
RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y RUN apt-get autoremove --purge -y && apt-get autoclean
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN ["chmod", "+x", "/entrypoint.sh"] RUN ["chmod", "+x", "/entrypoint.sh"]

View File

@ -8,7 +8,7 @@ node('container') {
docker.image('selenium/standalone-firefox:latest').withRun('-p 6667:4444 --name firefox --shm-size=1g') { d -> docker.image('selenium/standalone-firefox:latest').withRun('-p 6667:4444 --name firefox --shm-size=1g') { d ->
def mycontainer = docker.image('openvidu/openvidu-test-e2e:$DISTRO') def mycontainer = docker.image('openvidu/openvidu-test-e2e:$DISTRO')
mycontainer.pull() mycontainer.pull()
mycontainer.inside("--name e2e -p 4200:4200 -p 4443:4443 -u root -e MY_UID=0 -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm -v /opt/openvidu:/opt/openvidu") { mycontainer.inside("--name e2e -p 4200:4200 -p 4443:4443 -u root -e MY_UID=0 -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm -v /opt/openvidu:/opt/openvidu --privileged") {
stage('Preparation') { stage('Preparation') {
sh 'rm -rf ~/.m2 || true' sh 'rm -rf ~/.m2 || true'
sh 'rm -rf openvidu || true' sh 'rm -rf openvidu || true'