Skip to content

Commit 018a561

Browse files
authored
Python3 steps pr 1.x (#24)
* Fixing Dockerfile to install Ansible from pip. * Installing boto3 from pip. * Rogue 'i'. * Updating ansible path. * Wrong path. * Set Python3 as default on controller. * Adding Ansible galaxy var. * Setting the base container to use python3 as default. * Adding pip3 to base container. * Moving to _domain_name to be consistent with other projects.
1 parent d1fd60a commit 018a561

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docker-images/base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ RUN \
3939
python3-apt \
4040
python3-dev \
4141
python3-pycurl \
42+
python3-pip \
4243
rsyslog \
4344
sudo \
4445
systemd \

docker-images/controller/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ RUN \
66
apt-get update && \
77
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew" && \
88
apt-get install -y -o Dpkg::Options::="--force-confnew" \
9-
python3-pip \
109
git && \
1110
apt-get clean && \
1211
pip3 install ansible boto3 && \

templates/drupal8/ce-dev/ansible/deploy.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- build_type: local
99
- _env_type: dev
1010
{% raw %}
11-
- domain_name: www.{{ project_name }}.local
11+
- _domain_name: www.{{ project_name }}.local
1212
# Path to your project root. This must match the "volume" set in the docker-compose template.
1313
- deploy_path: /home/ce-dev/deploy/live.local
1414
# This actually does not take any backup, but is needed to populate settings.php.
@@ -27,7 +27,7 @@
2727
sanitize_command: "sql-sanitize"
2828
# Remove after initial pass, to avoid reinstalling Drupal.
2929
force_install: yes
30-
base_url: "https://{{ domain_name }}"
30+
base_url: "https://{{ _domain_name }}"
3131
# Composer command to run.
3232
- composer:
3333
command: install

templates/drupal8/ce-dev/ansible/provision.yml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
- env_type: dev
1313
- nginx:
1414
domains:
15-
- server_name: "{{ domain_name }}"
15+
- server_name: "{{ _domain_name }}"
1616
access_log: "/var/log/nginx-access.log"
1717
error_log: "/var/log/nginx-error.log"
1818
error_log_level: "notice"
1919
webroot: "/home/ce-dev/deploy/live.local/web"
2020
project_type: "drupal8"
2121
ssl:
22-
domain: "{{ domain_name }}"
23-
cert: "{{ _ce_dev_mkcert_base}}/{{ domain_name }}.pem"
24-
key: "{{ _ce_dev_mkcert_base}}/{{ domain_name }}-key.pem"
22+
domain: "{{ _domain_name }}"
23+
cert: "{{ _ce_dev_mkcert_base}}/{{ _domain_name }}.pem"
24+
key: "{{ _ce_dev_mkcert_base}}/{{ _domain_name }}-key.pem"
2525
handling: "unmanaged"
2626
ratelimitingcrawlers: no
2727
is_default: yes

0 commit comments

Comments
 (0)