Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seafile
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
Service Desk
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
Janne Mareike Koschinski
seafile
Commits
7bedc437
Verified
Commit
7bedc437
authored
3 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: Clean up dockerfiles
parent
638e0100
No related branches found
No related tags found
No related merge requests found
Pipeline
#2907
failed
3 years ago
Stage: build
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+6
-4
6 additions, 4 deletions
.gitlab-ci.yml
seahub/Dockerfile
+8
-127
8 additions, 127 deletions
seahub/Dockerfile
seahub/entrypoint.sh
+1
-0
1 addition, 0 deletions
seahub/entrypoint.sh
server/Dockerfile
+57
-84
57 additions, 84 deletions
server/Dockerfile
with
72 additions
and
215 deletions
.gitlab-ci.yml
+
6
−
4
View file @
7bedc437
se
ahub
:
se
rver
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
...
...
@@ -6,8 +6,8 @@ seahub:
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context se
ahub
/$CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/se
ahub
/Dockerfile --destination $CI_REGISTRY_IMAGE:se
ahub
-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE:se
ahub
se
rver
:
-
/kaniko/executor --context se
rver
/$CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/se
rver
/Dockerfile --destination $CI_REGISTRY_IMAGE:se
rver
-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE:se
rver
se
ahub
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
...
...
@@ -15,4 +15,6 @@ server:
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context server/$CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server/Dockerfile --destination $CI_REGISTRY_IMAGE:server-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE:server
-
/kaniko/executor --context seahub/$CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/seahub/Dockerfile --destination $CI_REGISTRY_IMAGE:seahub-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE:seahub
needs
:
-
"
server"
This diff is collapsed.
Click to expand it.
seahub/Dockerfile
+
8
−
127
View file @
7bedc437
FROM
ubuntu:18.04
FROM
seafile-server
RUN
apt-get update
&&
apt-get upgrade
-y
RUN
apt-get
install
-y
ssh
\
libevent-dev
\
libcurl4-openssl-dev
\
libglib2.0-dev
\
uuid-dev
\
intltool
\
libsqlite3-dev
\
libmysqlclient-dev
\
libarchive-dev
\
libtool
\
libjansson-dev
\
valac
\
libfuse-dev
\
cmake
\
re2c
\
flex
\
sqlite3
\
python-pip
\
python-simplejson
\
git
\
libssl-dev
\
libldap2-dev
\
libonig-dev
\
vim
\
vim-scripts
\
wget
\
cmake
\
gcc
\
autoconf
\
automake
\
mysql-client
\
postgresql-client
\
libpq-dev
\
librados-dev
\
libxml2-dev
\
curl
\
telnet
\
netcat
\
unzip
\
netbase
\
ca-certificates
\
apt-transport-https
\
build-essential
\
libxslt1-dev
\
libffi-dev
\
libpcre3-dev
\
libz-dev
\
xz-utils
\
nginx
\
pkg-config
\
poppler-utils
\
libmemcached-dev
RUN
curl
-sL
https://deb.nodesource.com/setup_14.x | bash -
RUN
curl
-sL
https://deb.nodesource.com/setup_16.x | bash -
RUN
apt-get
install
-y
nodejs
RUN
apt-get
install
-y
python3-pip python3 python3-dev
RUN
python3
-m
pip
install
--upgrade
pip
RUN
rm
/usr/bin/python
RUN
ln
-s
/usr/bin/python3 /usr/bin/python
RUN
rm
/usr/bin/pip
RUN
ln
-s
/usr/local/bin/pip3 /usr/bin/pip
RUN
pip
install
\
python-cas
\
djangosaml2
\
cffi
\
sqlalchemy
\
pymysql
\
pillow
\
pycryptodome
\
configparser
\
pylibmc
\
django-pylibmc
\
elasticsearch
==
5.5.0
\
elasticsearch-dsl
==
5.4.0
\
Django
==
2.2.14
\
future
\
captcha
\
django-statici18n
\
django-post_office
==
3.3.0
\
django-webpack_loader
==
0.7.0
\
gunicorn
\
mysqlclient
\
django-picklefield
==
2.1.1
\
openpyxl
\
qrcode
\
django-formtools
\
django-simple-captcha
\
djangorestframework
==
3.11.1
\
python-dateutil
\
requests
\
pillow
\
pyjwt
\
pycryptodome
\
requests_oauthlib
\
mock
\
nose
\
exam
\
splinter
\
pytest
\
pytest-django
\
psycopg2
RUN
mkdir
/source
WORKDIR
/source
RUN
git clone https://github.com/haiwen/libevhtp.git
RUN
git clone https://github.com/haiwen/libsearpc.git
RUN
git clone
--single-branch
--branch
=
feat/postgres-support https://github.com/justjanne/seafile-server.git
RUN
git clone
--single-branch
--branch
=
feat/postgres-support https://github.com/justjanne/seahub.git
WORKDIR
/source/libevhtp
RUN
cmake
-DEVHTP_DISABLE_SSL
=
ON
-DEVHTP_BUILD_SHARED
=
OFF .
RUN
make
RUN
make
install
RUN
ldconfig
WORKDIR
/source/libsearpc
RUN
./autogen.sh
RUN
./configure
RUN
make
RUN
make
install
RUN
ldconfig
WORKDIR
/source/seafile-server
RUN
./autogen.sh
RUN
./configure
--disable-fuse
RUN
make
RUN
make
install
RUN
ldconfig
WORKDIR
/source/seahub/frontend
RUN
npm
install
RUN
npm
install
--force
RUN
npm run build
ADD
entrypoint.sh /
WORKDIR
/source/seahub
ENV
PYTHONPATH="/usr/local/lib/python3.
6
/site-packages/:/source/seahub/thirdpart:$PYTHONPATH"
ENV
PYTHONPATH="/usr/local/lib/python3.
10
/site-packages/:/source/seahub/thirdpart:$PYTHONPATH"
ENV
CCNET_CONF_DIR="/conf"
ENV
SEAFILE_CONF_DIR="/tmp"
ENV
SEAFILE_CENTRAL_CONF_DIR="/conf"
VOLUME
/conf
VOLUME
/data
VOLUME
/tmp
ENTRYPOINT
["/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
seahub/entrypoint.sh
+
1
−
0
View file @
7bedc437
...
...
@@ -2,4 +2,5 @@
python3 manage.py collectstatic
python3 manage.py migrate
python3 manage.py migrate_base_filecomment
python3 manage.py runserver 0.0.0.0:8000
This diff is collapsed.
Click to expand it.
server/Dockerfile
+
57
−
84
View file @
7bedc437
FROM
ubuntu:
18
.04
FROM
ubuntu:
22
.04
RUN
apt-get update
&&
apt-get upgrade
-y
RUN
apt-get
install
-y
ssh
\
libevent-dev
\
libcurl4-openssl-dev
\
libglib2.0-dev
\
uuid-dev
\
intltool
\
libsqlite3-dev
\
libmysqlclient-dev
\
libarchive-dev
\
libtool
\
libjansson-dev
\
valac
\
libfuse-dev
\
RUN
apt-get
install
-y
\
apt-transport-https
\
autoconf
\
automake
\
cmake
\
re2c
\
build-essential
\
curl
\
flex
\
sqlite3
\
python-pip
\
python-simplejson
\
git
\
libssl-dev
\
intltool
\
libarchive-dev
\
libcurl4-openssl-dev
\
libevent-dev
\
libffi-dev
\
libfuse-dev
\
libglib2.0-dev
\
libjansson-dev
\
libldap2-dev
\
libmemcached-dev
\
libmysqlclient-dev
\
libonig-dev
\
vim
\
vim-scripts
\
wget
\
cmake
\
gcc
\
autoconf
\
automake
\
mysql-client
\
postgresql-client
\
libpcre3-dev
\
libpq-dev
\
librados-dev
\
libsqlite3-dev
\
libssl-dev
\
libtool
\
libxml2-dev
\
curl
\
telnet
\
netcat
\
unzip
\
netbase
\
ca-certificates
\
apt-transport-https
\
build-essential
\
libxslt1-dev
\
libffi-dev
\
libpcre3-dev
\
libz-dev
\
xz-utils
\
mysql-client
\
netbase
\
netcat
\
nginx
\
pkg-config
\
poppler-utils
\
libmemcached-dev
RUN
curl
-sL
https://deb.nodesource.com/setup_16.x | bash -
RUN
apt-get
install
-y
nodejs
postgresql-client
\
python-pip
\
re2c
\
sqlite3
\
unzip
\
uuid-dev
\
valac
\
xz-utils
RUN
apt-get
install
-y
python3-pip python3 python3-dev
RUN
python3
-m
pip
install
--upgrade
pip
RUN
rm
/usr/bin/python
RUN
ln
-s
/usr/bin/python3 /usr/bin/python
RUN
rm
/usr/bin/pip
RUN
ln
-s
/usr/local/bin/pip3 /usr/bin/pip
RUN
pip
install
\
python-cas
\
djangosaml2
\
cffi
\
sqlalchemy
\
pymysql
\
pillow
\
pycryptodome
\
configparser
\
pylibmc
\
django-pylibmc
\
elasticsearch
==
5.5.0
\
elasticsearch-dsl
==
5.4.0
\
Django
==
2.2.14
\
Django
==
3.2.6
\
future
\
captcha
\
django-statici18n
\
django-post_office
==
3.3.0
\
django-webpack_loader
==
0.7.0
\
gunicorn
\
mysqlclient
\
psycopg2
\
django-picklefield
==
2.1.1
\
openpyxl
\
qrcode
\
django-formtools
\
django-formtools
==
2.3
\
django-simple-captcha
\
djangorestframework
==
3.11.1
\
python-dateutil
\
requests
\
pillow
\
pyjwt
\
pycryptodome
\
pyjwt
==
2.1.
*
\
pycryptodome
==
3.12.0
\
requests_oauthlib
\
mock
\
nose
\
exam
\
splinter
\
pytest
\
pytest-django
chardet
\
python-cas
\
djangosaml2
==
0.20.0
\
pysaml2
==
6.5.1
\
cffi
RUN
mkdir
/source
WORKDIR
/source
...
...
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