Marvin Steadfast
a3c6e4c00d
there was alot of strange things going on. mostly with unicode and ipython version mismatching. now it looks like its working fine now.
42 lines
1.4 KiB
Docker
42 lines
1.4 KiB
Docker
FROM 32bit/ubuntu:14.04
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
software-properties-common \
|
|
python-software-properties \
|
|
|
|
&& add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe" \
|
|
|
|
&& apt-get update \
|
|
&& apt-get install -y \
|
|
openssh-server \
|
|
supervisor
|
|
|
|
RUN mkdir -p /var/run/sshd
|
|
RUN chmod 0755 /var/run/sshd
|
|
|
|
# Create and configure vagrant user
|
|
RUN useradd --create-home -s /bin/bash vagrant
|
|
WORKDIR /home/vagrant
|
|
|
|
# Configure SSH access
|
|
RUN mkdir -p /home/vagrant/.ssh
|
|
RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" > /home/vagrant/.ssh/authorized_keys
|
|
RUN chown -R vagrant: /home/vagrant/.ssh
|
|
RUN echo -n 'vagrant:vagrant' | chpasswd
|
|
|
|
# Enable passwordless sudo for the "vagrant" user
|
|
RUN echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant
|
|
RUN chmod 0440 /etc/sudoers.d/vagrant
|
|
|
|
# Supervisor
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
EXPOSE 22
|
|
CMD ["/usr/bin/supervisord"]
|