fix for envs

This commit is contained in:
Krzysztof Szumny 2015-08-22 18:10:18 +02:00
parent 275ed60a50
commit f452c5cffa
3 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,7 @@
FROM {{ cookiecutter.repo_name|replace('_', '') }}_django FROM {{ cookiecutter.repo_name|replace('_', '') }}_django
# Install setuptools, pip and OpenSSH # Install setuptools, pip and OpenSSH
RUN \ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-setuptools python3-pip python3-setuptools openssh-server && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-setuptools python3-pip python3-setuptools openssh-server && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# sshd needs this directory to run # sshd needs this directory to run

View File

@ -7,6 +7,7 @@ USER=docker_{{ cookiecutter.repo_name }}
# rename django username to docker_{{ cookiecutter.repo_name }} # rename django username to docker_{{ cookiecutter.repo_name }}
usermod -l $USER -m -d /home/$USER django usermod -l $USER -m -d /home/$USER django
groupmod -n $USER django groupmod -n $USER django
sed -i "s/django/$USER/g" /tmp/environment
mkdir /home/$USER/.ssh mkdir /home/$USER/.ssh
cat /app/compose/debug/keys_to_docker/id_rsa.pub > /home/$USER/.ssh/authorized_keys cat /app/compose/debug/keys_to_docker/id_rsa.pub > /home/$USER/.ssh/authorized_keys

View File

@ -4,6 +4,7 @@
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-watch": "~0.6.1", "grunt-contrib-watch": "~0.6.1",
"grunt-bg-shell": "~2.3.1", "grunt-bg-shell": "~2.3.1",
"connect-livereload": "~0.3.2", "connect-livereload": "~0.3.2",