GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — allan-docker-dev-python/Dockerfile at master · atomutek/allan-docker-dev-python Expand file tree/ Copy pathDockerfileMore file actions 73 lines (67 loc) · 2.5 KB / Copy pathDockerfileFile metadata and controls73 lines (67 loc) · 2.5 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 # Re-use the phusion baseimage which runs an SSH server etc FROM phusion/baseimage # Some definitions ENV SUDOFILE /etc/sudoers ENV DEBIAN_FRONTEND noninteractive COPY change_user_uid.sh / # Note: we chain all the command in One RUN, so that docker create only one layer RUN \ # we permit sshd to be started rm -f /etc/service/sshd/down && \ # we activate empty password with ssh (to simplify login \ # as it's only a dev machine, it will never be used in production (right?) \ echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config && \ echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config && \ # we create a user vagrant (so that Vagrant will be happy) # without password useradd \ --shell /bin/bash \ --create-home --base-dir /home \ --user-group \ --groups sudo,ssh \ --password '' \ vagrant && \ mkdir -p /home/vagrant/.ssh && \ chown -R vagrant:vagrant /home/vagrant/.ssh && \ # Update apt-cache, so that stuff can be installed \ # Install python (otherwise ansible will not work) \ # Install aptitude, since ansible needs it (only apt-get is installed) \ apt-get -y update && \ apt-get -y upgrade && \ apt-get -y install \ sudo \ libffi-dev \ libyaml-dev \ libssl-dev \ libpython-dev \ python \ python-setuptools \ python-pip \ aptitude \ && \ # Enable password-less sudo for all user (including the 'vagrant' user) \ chmod u+w ${SUDOFILE} && \ echo '%sudo ALL=(ALL:ALL) NOPASSWD: ALL' >> ${SUDOFILE} && \ chmod u-w ${SUDOFILE} && \ apt-get clean && \ # install ansible pip install --upgrade ansible setuptools && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ # we put the 'last time apt-get update was run' file far in the past \ # so that ansible can then re-run apt-get update \ touch -t 197001010000 /var/lib/apt/periodic/update-success-stamp && \ # fix the tty error on vagrant \ sed -i '/tty/!s/mesg n/true/' /root/.profile COPY provisioning/ /provisioning RUN \ # run ansible ansible-playbook provisioning/site.yml -c local RUN \ # clean apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ # we put the 'last time apt-get update was run' file far in the past \ # so that ansible can then re-run apt-get update \ touch -t 197001010000 /var/lib/apt/periodic/update-success-stamp ENTRYPOINT /change_user_uid.sh CMD ["/sbin/my_init"] |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |