Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
08b90e6e
Commit
08b90e6e
authored
Nov 24, 2016
by
Victor Nikulshin
Browse files
Embed Apache VirtualHost config into Dockerfile
parent
c86366ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
08b90e6e
...
...
@@ -35,9 +35,19 @@ RUN chmod 600 /root/.ssh/id_rsa*
RUN
exec
ssh-agent /bin/bash
&&
ssh-add /root/.ssh/id_rsa
RUN
ssh-keyscan gitlab.savoirfairelinux.com
>>
/root/.ssh/known_hosts
#Copy vhost configuration and enable modules
RUN
cp
/opt/sfl/conf/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN
a2enmod rewrite vhost_alias
# Create Apache configuration
RUN
echo
'ServerName localhost\n
\
<VirtualHost *:80>\n
\
DocumentRoot /opt/sfl/src/drupal\n
\
\n\
<Directory /opt/sfl/src/drupal/>\n
\
AllowOverride All\n
\
Options FollowSymLinks\n
\
Require all granted\n
\
</Directory>\n
\
</VirtualHost>'
\
>
/etc/apache2/sites-available/000-default.conf
RUN
a2enmod rewrite vhost_alias
&&
service apache2 restart
ENTRYPOINT
["/opt/init/init.sh"]
CMD
["/sbin/my_init"]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment