Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adding docker scripts.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Run the bootstrap.sh script in a clean docker container. |