Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding docker scripts.
  • Loading branch information
Tim authored and mithro committed Sep 18, 2015
1 parent 5182d79 commit c5a6ca7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/docker-test/Dockerfile
@@ -0,0 +1,23 @@
FROM ubuntu:14.04
MAINTAINER mithro@mithis.com

# Update the Ubuntu image to prevent it occuring below
RUN \
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/yes && \
apt-get update && \
apt-get upgrade

RUN \
apt-get install sudo curl

RUN adduser --disabled-password --gecos "" hdmi2usb
RUN adduser hdmi2usb sudo
RUN cat /etc/sudoers
RUN sed -i -e's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers

USER hdmi2usb
WORKDIR /home/hdmi2usb
RUN \
export GIT_BRANCH=script-split; curl -fsS https://raw.githubusercontent.com/timvideos/HDMI2USB-misoc-firmware/$GIT_BRANCH/scripts/bootstrap.sh | bash
RUN \
cd HDMI2USB-misoc-firmware; ./.travis/run.sh
1 change: 1 addition & 0 deletions scripts/docker-test/README.md
@@ -0,0 +1 @@
Run the bootstrap.sh script in a clean docker container.

0 comments on commit c5a6ca7

Please sign in to comment.