~mclehman/guestctl

20a391086464c9dcbbcf791497bf80787647ff62 — 0xFORDCOMMA 4 years ago eb89ebf
Fix incorrect dockerfile template.
2 files changed, 5 insertions(+), 3 deletions(-)

M META6.json
M resources/templates/dockerfile.tmpl
M META6.json => META6.json +1 -1
@@ 11,7 11,7 @@
        "templates/docker-compose.tmpl",
        "templates/sshd_config.tmpl"
    ],
    "version" : "0.0.1",
    "version" : "0.0.2",
    "production" : false,
    "perl" : "v6.*",
    "authors" : [

M resources/templates/dockerfile.tmpl => resources/templates/dockerfile.tmpl +4 -2
@@ 1,8 1,8 @@
FROM {{ base_image }}

RUN {{ package_manager }} {{ package_manager_update }} && {{ package_manager }} {{ package_manager_install }} {{ noconfirm }} openssh sudo vim audit
RUN {{ package_manager }} {{ package_manager_update }} && {{ package_manager }} {{ package_manager_install }} {{ noconfirm }} {{ ssh_server }} sudo vim {{ aux_packages }}
RUN useradd -m {{ user }} && echo '{{ user }}:{{ temporarypassword }}' chpasswd
RUN groupadd sudo && gpasswd -a {{ user }} sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN groupadd -f sudo && gpasswd -a {{ user }} sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

RUN ssh-keygen -A



@@ 10,5 10,7 @@ RUN mkdir -p /home/{{ user }}/.ssh
RUN echo '{{ ssh_key }}' > /home/{{ user }}/.ssh/authorized_keys
COPY ssh/sshd_config /etc/ssh/sshd_config

{{ aux_dockerfile }}

EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]