Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
09795625
Commit
09795625
authored
Aug 10, 2022
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch '5534-add-docker' into 'master'
run up appmonitor: add sockets See merge request
!22
parents
804110a5
5f53085a
Branches
Branches containing commit
No related tags found
1 merge request
!22
run up appmonitor: add sockets
Pipeline
#783
passed
Aug 10, 2022
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/containers/web-server/Dockerfile
+1
-1
1 addition, 1 deletion
docker/containers/web-server/Dockerfile
docker/init.sh.cfg
+4
-6
4 additions, 6 deletions
docker/init.sh.cfg
public_html/deployment/classes/project.class.php
+3
-3
3 additions, 3 deletions
public_html/deployment/classes/project.class.php
with
8 additions
and
10 deletions
docker/containers/web-server/Dockerfile
+
1
−
1
View file @
09795625
...
...
@@ -11,4 +11,4 @@ RUN a2enmod rewrite
# install php packages
COPY
--from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN
install-php-extensions curl mbstring ldap intl xml
RUN
install-php-extensions curl mbstring ldap intl xml
sockets
This diff is collapsed.
Click to expand it.
docker/init.sh.cfg
+
4
−
6
View file @
09795625
...
...
@@ -4,7 +4,8 @@
# This script is sourced by init.sh ... this file is bash syntax
#
# ----------------------------------------------------------------------
# 2021-11-xx <axel.hahn@iml.unibe.ch>
# 2022-07-15 <axel.hahn@iml.unibe.ch>
# 2022-08-10 <axel.hahn@iml.unibe.ch> add php-sockets for appmonitor
# ======================================================================
APP_NAME
=
imlcinode
...
...
@@ -26,7 +27,8 @@ APP_APACHE_MODULES="rewrite"
APP_PHP_VERSION
=
8.1
# sqlite3 is active already
APP_PHP_MODULES
=
"curl mbstring ldap intl xml"
# sockets is for appmonitor tcp check only
APP_PHP_MODULES
=
"curl mbstring ldap intl xml sockets"
# ONSTARTUP="docker exec -it appmonitor-server nohup /usr/local/bin/php /var/www/appmonitor/public_html/server/service.php > /tmp/appmonitor-service.log &"
# APP_ONSTARTUP="php ${WEBROOT}/server/service.php"
...
...
@@ -38,7 +40,6 @@ APP_PHP_MODULES="curl mbstring ldap intl xml"
# add a container with database?
DB_ADD
=
false
# ----------------------------------------------------------------------
# for an optional database server
DB_PORT
=
13306
...
...
@@ -66,9 +67,6 @@ WRITABLEDIR="../public_html ../config ../data"
# web service user in container
DOCKER_USER_UID
=
33
# document root inside web-server container
WEBROOT
=
/var/www/${APP_NAME}/public_html
CUTTER_NO_DATABASE
=
"CUT-HERE-FOR-NO-DATABASE"
frontendurl
=
http://localhost:${APP_PORT}/
...
...
This diff is collapsed.
Click to expand it.
public_html/deployment/classes/project.class.php
+
3
−
3
View file @
09795625
...
...
@@ -917,16 +917,16 @@ class project extends base {
&&
array_key_exists
(
$sPlace
,
$aDataPhase
)
// && array_key_exists('version', $aDataPhase[$sPlace])
)
{
if
(
$bFirstVersion
&&
!
$bHasDifferentVersions
&&
$bFirstVersion
!==
$aDataPhase
[
$sPlace
][
'version'
]){
if
(
$bFirstVersion
&&
isset
(
$aDataPhase
[
$sPlace
][
'version'
])
&&
!
$bHasDifferentVersions
&&
$bFirstVersion
!==
$aDataPhase
[
$sPlace
][
'version'
]){
$bHasDifferentVersions
=
true
;
}
if
(
!
$bFirstVersion
){
$bFirstVersion
=
$aDataPhase
[
$sPlace
][
'version'
];
$bFirstVersion
=
isset
(
$aDataPhase
[
$sPlace
][
'version'
]
)
?
$aDataPhase
[
$sPlace
][
'version'
]
:
$bFirstVersion
;
}
}
}
// check queue
if
(
!
$bHasQueue
&&
array_key_exists
(
'onhold'
,
$aDataPhase
)
&&
$aDataPhase
[
'onhold'
][
'version'
]){
if
(
!
$bHasQueue
&&
isset
(
$aDataPhase
[
'onhold'
][
'version'
]
)
&&
$aDataPhase
[
'onhold'
][
'version'
]){
$bHasQueue
=
true
;
}
}
...
...
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