mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 11:10:12 +03:00
fix for envs
This commit is contained in:
parent
275ed60a50
commit
f452c5cffa
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user