Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dolibarr
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Dolibarr
Commits
fac747b7
Verified
Commit
fac747b7
authored
May 10, 2021
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Change the way dolibarr sources are managed
parent
993b4486
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
docker-compose.yml
+2
-3
2 additions, 3 deletions
docker-compose.yml
docker/Dockerfile
+1
-7
1 addition, 7 deletions
docker/Dockerfile
docker/dolibarr.conf
+1
-1
1 addition, 1 deletion
docker/dolibarr.conf
docker/entrypoint.sh
+12
-0
12 additions, 0 deletions
docker/entrypoint.sh
with
16 additions
and
11 deletions
docker-compose.yml
+
2
−
3
View file @
fac747b7
...
...
@@ -13,9 +13,8 @@ mariadb:
dolibarr
:
build
:
./docker
volumes
:
#- "./dolibarr_src/htdocs:/var/www/html:rw" uncomment to use local clone of dolibarr sources
-
"
./dolibarr_docs:/var/www/documents:rw"
-
"
./src:/var/www/html/custom:rw"
-
"
./dolibarr_src/:/var/www/dolibarr:rw"
-
"
./src:/var/www/custom:rw"
environment
:
DOLI_VERSION
:
${DOLI_VERSION}
DOLI_DB_HOST
:
mariadb
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
1
−
7
View file @
fac747b7
...
...
@@ -51,12 +51,6 @@ RUN a2enmod proxy_fcgi
#RUN a2enmod calendar
WORKDIR
/var/www/
RUN
git clone https://github.com/Dolibarr/dolibarr
RUN
rm
-rf
html
RUN
ln
-s
/var/www/dolibarr/htdocs /var/www/html
WORKDIR
/var/www/html
RUN
chown
-R
www-data:www-data /var/www/html/
#RUN sudo -u www-data composer global require laravel/installer
#RUN ln -s /var/www/.composer/vendor/bin/laravel /usr/local/bin/laravel
RUN
mkdir
/var/www/custom
COPY
entrypoint.sh /
ENTRYPOINT
["/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
docker/dolibarr.conf
+
1
−
1
View file @
fac747b7
...
...
@@ -2,7 +2,7 @@
ServerName
localhost
ServerAdmin
webmaster
@
localhost
DocumentRoot
/
var
/
www
/
html
DocumentRoot
/
var
/
www
/
dolibarr
/
htdocs
ErrorLog
${
APACHE_LOG_DIR
}/
dolibarr_erro
..
log
CustomLog
${
APACHE_LOG_DIR
}/
dolibarr_access
.
log
combined
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
+
12
−
0
View file @
fac747b7
#!/bin/bash
if
[
-z
"
$(
ls
/var/www/dolibarr 2> /dev/null
)
"
]
;
then
# Initialize dolibarr sources if empty
git clone https://github.com/Dolibarr/dolibarr
chown
-R
www-data:www-data /var/www/dolibarr
fi
if
[
-z
"
$(
ls
/var/www/custom 2> /dev/null
)
"
]
;
then
# Initialize custom directory if empty
cp
-r
/var/www/dolibarr/htdocs/custom/
*
/var/www/custom
rm
-rf
/var/www/dolibarr/htdocs/custom
fi
ln
-sf
/var/www/custom /var/www/dolibarr/htdocs/
cd
/var/www/dolibarr
git fetch
git checkout
$DOLI_VERSION
php-fpm7.3
-D
...
...
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