Skip to content
Snippets Groups Projects
Commit 925e7992 authored by Chris Shantz's avatar Chris Shantz
Browse files

fixed merge conflict

parents 701c5f9a e1d27b33
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,8 @@ RUN echo "mysql-server mysql-server/root_password_again password root" | debconf ...@@ -38,6 +38,8 @@ RUN echo "mysql-server mysql-server/root_password_again password root" | debconf
RUN apt-get update && \ RUN apt-get update && \
apt-get install --assume-yes \ apt-get install --assume-yes \
apache2 \ apache2 \
nano \
yarn \
openssh-server \ openssh-server \
wget \ wget \
sudo \ sudo \
...@@ -79,7 +81,6 @@ RUN openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /tmp/apache.key ...@@ -79,7 +81,6 @@ RUN openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /tmp/apache.key
RUN cp /tmp/apache.crt /etc/ssl/certs/server.crt RUN cp /tmp/apache.crt /etc/ssl/certs/server.crt
RUN cp /tmp/apache.key /etc/ssl/private/server.key RUN cp /tmp/apache.key /etc/ssl/private/server.key
# Replace the default site configuration with our own. # Replace the default site configuration with our own.
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
...@@ -89,15 +90,15 @@ RUN a2enmod rewrite ...@@ -89,15 +90,15 @@ RUN a2enmod rewrite
# Enable SSL # Enable SSL
RUN a2enmod ssl RUN a2enmod ssl
## for Content Security Policy (CSP). # for Content Security Policy (CSP).
RUN a2enmod headers RUN a2enmod headers
## Install the latest npm and gulp so we have them for responsive sites. # Install the latest npm and gulp so we have them for responsive sites.
RUN sudo npm install npm@latest -g \ RUN sudo npm install npm@latest -g \
sudo npm install gulp -g \ sudo npm install gulp -g \
sudo npm install bower -g sudo npm install bower -g
## Create a symlink for node to nodejs. # Create a symlink for node to nodejs.
## RUN ln -s /usr/bin/nodejs /usr/bin/node ## RUN ln -s /usr/bin/nodejs /usr/bin/node
......
...@@ -24,13 +24,14 @@ if [ -n "$APACHE_DOCROOT_DIR" ]; then ...@@ -24,13 +24,14 @@ if [ -n "$APACHE_DOCROOT_DIR" ]; then
fi fi
# Allow the site name to be overriden. # Allow the site name to be overriden.
APACHE_SITE_NAME="${APACHE_SITE_NAME:docker8}" APACHE_SITE_NAME="${APACHE_SITE_NAME:-docker8}"
if [ -n "$APACHE_SITE_NAME" ]; then if [ -n "$APACHE_SITE_NAME" ]; then
sed -i 's@^\s*ServerName.*@'" ServerName ${APACHE_SITE_NAME}"'@' /etc/apache2/sites-available/000-default.conf sed -i 's@^\s*ServerName.*@'" ServerName ${APACHE_SITE_NAME}"'@' /etc/apache2/sites-available/000-default.conf
fi fi
# Allow for site aliases to be provided. # Allow for site aliases to be provided.
APACHE_SITE_ALIAS="${APACHE_SITE_ALIAS:docke8.localhost}" APACHE_SITE_ALIAS="${APACHE_SITE_ALIAS:-docker8.localhost}"
if [ -n "$APACHE_SITE_ALIAS" ]; then if [ -n "$APACHE_SITE_ALIAS" ]; then
sed -i 's@^\s*ServerAlias.*@'" ServerAlias ${APACHE_SITE_ALIAS}"'@' /etc/apache2/sites-available/000-default.conf sed -i 's@^\s*ServerAlias.*@'" ServerAlias ${APACHE_SITE_ALIAS}"'@' /etc/apache2/sites-available/000-default.conf
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment