From 60d8b8d35098741538478c0c6e15f2f1c11838c3 Mon Sep 17 00:00:00 2001 From: encrypt Date: Sat, 24 Jan 2015 21:14:05 +0100 Subject: [PATCH] add dockerfiles for basebox with tmux and default user --- tmux/alpinelinux/Dockerfile | 14 ++++++++++++++ tmux/archlinux/Dockerfile | 14 ++++++++++++++ tmux/ubuntu/Dockerfile | 12 ++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 tmux/alpinelinux/Dockerfile create mode 100644 tmux/archlinux/Dockerfile create mode 100644 tmux/ubuntu/Dockerfile diff --git a/tmux/alpinelinux/Dockerfile b/tmux/alpinelinux/Dockerfile new file mode 100644 index 0000000..76cdc45 --- /dev/null +++ b/tmux/alpinelinux/Dockerfile @@ -0,0 +1,14 @@ +FROM alpinelinux/base +MAINTAINER encrypt + +RUN apk update && \ + apk add tmux sudo + +RUN adduser user -D && \ + echo "user:default" | chpasswd && \ + echo "user ALL=(ALL) ALL" >> /etc/sudoers + +USER user + +CMD ["/bin/bash"] + \ No newline at end of file diff --git a/tmux/archlinux/Dockerfile b/tmux/archlinux/Dockerfile new file mode 100644 index 0000000..8b1afba --- /dev/null +++ b/tmux/archlinux/Dockerfile @@ -0,0 +1,14 @@ +FROM base/archlinux +MAINTAINER encrypt + +RUN pacman -Syu --noconfirm && \ + pacman-db-upgrade && \ + pacman -S --noconfirm tmux sudo + +RUN echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers && \ + useradd user -m -G wheel && \ + echo "user:default" | chpasswd + +USER user + +CMD ["/bin/bash"] \ No newline at end of file diff --git a/tmux/ubuntu/Dockerfile b/tmux/ubuntu/Dockerfile new file mode 100644 index 0000000..8742ee5 --- /dev/null +++ b/tmux/ubuntu/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:latest +MAINTAINER encrypt + +RUN apt-get update && \ + apt-get install -y tmux + +RUN useradd user -m -G sudo && \ + echo "user:default" | chpasswd + +USER user + +CMD ["/bin/bash"] \ No newline at end of file