Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wcms-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chris Shantz
wcms-docker
Commits
925e7992
Commit
925e7992
authored
6 years ago
by
Chris Shantz
Browse files
Options
Downloads
Plain Diff
fixed merge conflict
parents
701c5f9a
e1d27b33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-scripts/web/Dockerfile
+5
-4
5 additions, 4 deletions
build-scripts/web/Dockerfile
build-scripts/web/docker-entrypoint.sh
+3
-2
3 additions, 2 deletions
build-scripts/web/docker-entrypoint.sh
with
8 additions
and
6 deletions
build-scripts/web/Dockerfile
+
5
−
4
View file @
925e7992
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
build-scripts/web/docker-entrypoint.sh
+
3
−
2
View file @
925e7992
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment