Sha256: 0a41c21c1ac20a0f8bd875b07c34218ee03bac3e0cf28d58475769fd34a06189

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

FROM <%= @image %>
LABEL version="0.1"
LABEL maintainer="<%= @maintainer %>"
LABEL description="Dockerfile generated by dockerun" 
LABEL dockerun-info="https://github.com/chrisliaw/dockerun"

<% case @image_base.to_sym
when :fedora %>
RUN dnf update && dnf install sudo git curl 
<% when :debian %>
RUN apt-get update && apt-get install -y sudo git curl build-essential vim
<% end %>

<% if TR::RTUtils.on_linux? and @match_user == true %>

RUN groupadd -f -g <%= @user_group_id %>  <%= @user_group_name %> && \ 
    useradd -u <%= @user_id %> -g <%= @user_group_id %> -m <%= @user_login %> && \
    usermod -aG sudo <%= @user_login %> && \ 
    echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER <%= @user_login %>

# from this point onwards, sudo is required for privileaged operation
#RUN sudo apt-get install -y curl build-essential

<% end %>

<% if not (@docker_init_file_path.nil? or @docker_init_file_path.empty?) %>
COPY <%= File.basename(@docker_init_file_path) %> /tmp/docker_init.rb 
RUN ruby /tmp/docker_init.rb
<% end %>

<% if not_empty?(@working_dir) %>
WORKDIR <%= @working_dir %>
<% end %>

# other Dockerfile entries starts here

CMD [ "/bin/bash", "--login" ]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dockerun-0.3.6 template/Dockerfile_general.erb
dockerun-0.3.5 template/Dockerfile_general.erb
dockerun-0.3.4 template/Dockerfile_general.erb
dockerun-0.3.3 template/Dockerfile_general.erb