Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-onlyoffice-documentserver
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
Container registry
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TO
docker-onlyoffice-documentserver
Commits
89fd2598
Commit
89fd2598
authored
7 years ago
by
Alexey Golubev
Browse files
Options
Downloads
Patches
Plain Diff
update base image version to 16.04
parent
f541c977
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+41
-38
41 additions, 38 deletions
Dockerfile
run-document-server.sh
+4
-1
4 additions, 1 deletion
run-document-server.sh
with
45 additions
and
39 deletions
Dockerfile
+
41
−
38
View file @
89fd2598
FROM
ubuntu:1
4
.04
FROM
ubuntu:1
6
.04
LABEL
maintainer Ascensio System SIA <support@onlyoffice.com>
LABEL
maintainer Ascensio System SIA <support@onlyoffice.com>
ENV
LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive
ENV
LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive
RUN
echo
"#!/bin/sh
\n
exit 0"
>
/usr/sbin/policy-rc.d
&&
\
RUN
echo
"#!/bin/sh
\n
exit 0"
>
/usr/sbin/policy-rc.d
&&
\
apt-get
-y
update
&&
\
apt-get
-y
update
&&
\
apt-get
--force-yes
-yq
install
wget apt-transport-https curl
&&
\
apt-get
-yq
install
wget apt-transport-https curl
locales
&&
\
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
CB2DE8E5
&&
\
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
CB2DE8E5
&&
\
echo
"deb http://archive.ubuntu.com/ubuntu precise main universe multiverse"
>>
/etc/apt/sources.list
&&
\
locale-gen en_US.UTF-8
&&
\
locale-gen en_US.UTF-8
&&
\
curl
-sL
https://deb.nodesource.com/setup_6.x | bash -
&&
\
curl
-sL
https://deb.nodesource.com/setup_6.x | bash -
&&
\
apt-get
-y
update
&&
\
apt-get
-y
update
&&
\
echo
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula
select
true
| debconf-set-selections
&&
\
echo
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula
select
true
| debconf-set-selections
&&
\
apt-get
--force-yes
-yq
install
adduser
\
apt-get
-yq
install
\
adduser
\
bomstrip
\
bomstrip
\
fonts-crosextra-carlito
\
fonts-crosextra-carlito
\
fonts-dejavu
\
fonts-dejavu
\
...
@@ -34,6 +34,8 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
...
@@ -34,6 +34,8 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
libxss1
\
libxss1
\
libxtst6
\
libxtst6
\
nano
\
nano
\
net-tools
\
netcat
\
nginx-extras
\
nginx-extras
\
nodejs
\
nodejs
\
postgresql
\
postgresql
\
...
@@ -42,6 +44,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
...
@@ -42,6 +44,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
rabbitmq-server
\
rabbitmq-server
\
redis-server
\
redis-server
\
software-properties-common
\
software-properties-common
\
sudo
\
supervisor
\
supervisor
\
ttf-mscorefonts-installer
\
ttf-mscorefonts-installer
\
xvfb
\
xvfb
\
...
@@ -68,7 +71,7 @@ ARG PRODUCT_NAME=onlyoffice-documentserver
...
@@ -68,7 +71,7 @@ ARG PRODUCT_NAME=onlyoffice-documentserver
RUN
echo
"
$REPO_URL
"
|
tee
/etc/apt/sources.list.d/onlyoffice.list
&&
\
RUN
echo
"
$REPO_URL
"
|
tee
/etc/apt/sources.list.d/onlyoffice.list
&&
\
apt-get
-y
update
&&
\
apt-get
-y
update
&&
\
service postgresql start
&&
\
service postgresql start
&&
\
apt-get
--
force-yes
-yq
install
$PRODUCT_NAME
&&
\
apt-get
--
allow-unauthenticated
-yq
install
$PRODUCT_NAME
&&
\
service postgresql stop
&&
\
service postgresql stop
&&
\
service supervisor stop
&&
\
service supervisor stop
&&
\
chmod
755 /app/onlyoffice/
*
.sh
&&
\
chmod
755 /app/onlyoffice/
*
.sh
&&
\
...
...
This diff is collapsed.
Click to expand it.
run-document-server.sh
+
4
−
1
View file @
89fd2598
...
@@ -45,7 +45,7 @@ JSON_EXAMPLE="json -q -f ${ONLYOFFICE_EXAMPLE_CONFIG}"
...
@@ -45,7 +45,7 @@ JSON_EXAMPLE="json -q -f ${ONLYOFFICE_EXAMPLE_CONFIG}"
LOCAL_SERVICES
=()
LOCAL_SERVICES
=()
PG_VERSION
=
9.
3
PG_VERSION
=
9.
5
PG_NAME
=
main
PG_NAME
=
main
PGDATA
=
/var/lib/postgresql/
${
PG_VERSION
}
/
${
PG_NAME
}
PGDATA
=
/var/lib/postgresql/
${
PG_VERSION
}
/
${
PG_NAME
}
PG_NEW_CLUSTER
=
false
PG_NEW_CLUSTER
=
false
...
@@ -214,6 +214,9 @@ update_nginx_settings(){
...
@@ -214,6 +214,9 @@ update_nginx_settings(){
sed
's,{{SSL_CERTIFICATE_PATH}},'
"
${
SSL_CERTIFICATE_PATH
}
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
sed
's,{{SSL_CERTIFICATE_PATH}},'
"
${
SSL_CERTIFICATE_PATH
}
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
sed
's,{{SSL_KEY_PATH}},'
"
${
SSL_KEY_PATH
}
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
sed
's,{{SSL_KEY_PATH}},'
"
${
SSL_KEY_PATH
}
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
# turn on http2
sed
's,\(443 ssl\),\1 http2,'
-i
${
NGINX_ONLYOFFICE_CONF
}
# if dhparam path is valid, add to the config, otherwise remove the option
# if dhparam path is valid, add to the config, otherwise remove the option
if
[
-r
"
${
SSL_DHPARAM_PATH
}
"
]
;
then
if
[
-r
"
${
SSL_DHPARAM_PATH
}
"
]
;
then
sed
's,\(\#* *\)\?\(ssl_dhparam \).*\(;\)$,'
"
\2
${
SSL_DHPARAM_PATH
}
\3
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
sed
's,\(\#* *\)\?\(ssl_dhparam \).*\(;\)$,'
"
\2
${
SSL_DHPARAM_PATH
}
\3
"
','
-i
${
NGINX_ONLYOFFICE_CONF
}
...
...
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