Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-enote-sharelatex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-enote-sharelatex
Commits
cb927036
Commit
cb927036
authored
7 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Added latexmk
parent
d4aa6c8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sharelatex/Dockerfile
+30
-21
30 additions, 21 deletions
sharelatex/Dockerfile
with
30 additions
and
21 deletions
sharelatex/Dockerfile
+
30
−
21
View file @
cb927036
FROM
ubuntu:18.04
#ARG TZ=Europe/Copenhagen
#RUN cp /usr/share/zoneinfo/$TZ /etc/localtime
#RUN bash -l -c 'echo "${TZ}" > /etc/timezone'
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt-get
-qq
update
&&
apt-get
-qq
-y
upgrade
RUN
apt-get
-qq
-y
install
build-essential wget unzip
time
imagemagick optipng strace nginx git python zlib1g-dev libpcre3-dev
qpdf
\
RUN
apt-get
-qq
-y
install
build-essential wget unzip
time
imagemagick optipng strace nginx git python zlib1g-dev libpcre3-dev
\
aspell aspell-en aspell-da
\
supervisor
# nodejs grunt node-grunt-cli npm supervisor
#RUN wget https://s3.amazonaws.com/sharelatex-random-files/qpdf-6.0.0.tar.gz && \
# tar xzf qpdf-6.0.0.tar.gz && cd qpdf-6.0.0 && \
# ./configure && make && make install && ldconfig
RUN
apt-get
-y
install
tzdata
ARG
TZ=Europe/Copenhagen
RUN
cp
/usr/share/zoneinfo/
$TZ
/etc/localtime
RUN
bash
-l
-c
'echo "${TZ}" > /etc/timezone'
RUN
dpkg-reconfigure
-f
noninteractive tzdata
RUN
wget https://s3.amazonaws.com/sharelatex-random-files/qpdf-6.0.0.tar.gz
&&
\
tar
xzf qpdf-6.0.0.tar.gz
&&
cd
qpdf-6.0.0
&&
\
./configure
&&
make
&&
make
install
&&
ldconfig
# Replace shell with bash so we can source files
RUN
rm
/bin/sh
&&
ln
-s
/bin/bash /bin/sh
...
...
@@ -35,7 +37,8 @@ RUN apt-get -qq -y install --no-install-recommends \
wget
#ENV NVM_DIR /root/.nvm
ENV
NODE_VERSION 6.14.3
#ENV NODE_VERSION 6.14.3
ENV
NODE_VERSION 6.13.1
# Install nvm with node and npm
RUN
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
...
...
@@ -62,16 +65,21 @@ RUN apt-get -qq -y install texlive-base texlive-binaries texlive-latex-base texl
#RUN apt-get -qq -y install r-base r-base-dev xorg xorg-dev r-cran-rgl libxml2-dev libcurl4-gnutls-dev \
# r-cran-rjava default-jre ed libssl-dev
RUN
git clone https://github.com/sharelatex/sharelatex.git /var/www/sharelatex
&&
\
rm
-rf
/var/www/sharelatex/.git
RUN
apt-get
-y
install
latexmk
#RUN git clone https://github.com/sharelatex/sharelatex.git /var/www/sharelatex && \
# rm -rf /var/www/sharelatex/.git
COPY
www.tar.gz /
RUN
rm
-rf
/var/www
&&
cd
/var
&&
tar
xzf /www.tar.gz
&&
rm
-rf
/www.tar.gz
COPY
setup*.sh /
#RUN /setup-r.sh
RUN
/setup-paths.sh
COPY
config/services.js /var/www/sharelatex/config/
COPY
config/package.json /var/www/
COPY
config/git-revision.js /var/www/
#
COPY config/services.js /var/www/sharelatex/config/
#
COPY config/package.json /var/www/
#
COPY config/git-revision.js /var/www/
COPY
config/settings.coffee /etc/sharelatex/
RUN
/setup-crypto.sh
...
...
@@ -83,22 +91,23 @@ RUN cd /var/www/sharelatex; \
grunt
install
# Fixes https://github.com/sharelatex/document-updater-sharelatex/pull/61
COPY
config/Gruntfile.coffee /var/www/sharelatex/document-updater/
#
COPY config/Gruntfile.coffee /var/www/sharelatex/document-updater/
RUN
cd
/var/www/sharelatex
&&
bash
-c
'source ./bin/install-services'
;
\
#RUN cd /var/www/sharelatex && bash -c 'source ./bin/install-services'; \
RUN
cd
/var/www/sharelatex
&&
\
cd
web
;
\
npm
install
;
\
npm
install
bcrypt
;
\
cd
modules
;
\
git clone https://github.com/sharelatex/launchpad-web-module.git launchpad
;
\
#
git clone https://github.com/sharelatex/launchpad-web-module.git launchpad;
\
grunt compile
;
RUN
cd
/var/www
&&
node git-revision
>
revisions.txt
RUN
cd
/var/www/sharelatex/web
&&
grunt compile:minify
;
RUN
cd
/var/www/sharelatex/clsi
&&
grunt compile:bin
# chown many files is slow, so delete .git
RUN
find /var/www/
-type
d
-name
.git
-exec
rm
-rf
'{}'
+
RUN
chown
-R
www-data:www-data /var/www/sharelatex
#
RUN find /var/www/ -type d -name .git -exec rm -rf '{}' +
#
RUN chown -R www-data:www-data /var/www/sharelatex
RUN
rm
-f
/etc/nginx/sites-enabled/default
COPY
config/nginx.conf /etc/nginx/
...
...
@@ -107,7 +116,7 @@ COPY config/sharelatex /etc/logrotate.d/
COPY
config/supervisord.conf /etc/
RUN
ln
-s
/root/.nvm/versions/node/v6.1
4.3
/bin/node /usr/bin/
RUN
ln
-s
/root/.nvm/versions/node/v6.1
3.1
/bin/node /usr/bin/
CMD
["/usr/bin/supervisord"]
...
...
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