Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Docker
LakeDropsDrupalDev
Commits
88f366f6
Commit
88f366f6
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#20
Update all l3d components from within selfupdate
parent
27c8bbaa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
run/scripts/selfupdate
+9
-0
9 additions, 0 deletions
run/scripts/selfupdate
run/scripts/update
+4
-0
4 additions, 0 deletions
run/scripts/update
with
13 additions
and
0 deletions
run/scripts/selfupdate
+
9
−
0
View file @
88f366f6
...
@@ -19,5 +19,14 @@ if [[ "$UPDATE" == *"setup:${NEWVERSION} not found"* ]]; then
...
@@ -19,5 +19,14 @@ if [[ "$UPDATE" == *"setup:${NEWVERSION} not found"* ]]; then
fi
fi
echo
"Self update to versino
${
NEWVERSION
}
succeeded!"
echo
"Self update to versino
${
NEWVERSION
}
succeeded!"
export
VERSION
=
${
NEWVERSION
}
export
PHP_VERSION
=
7.0
/usr/local/bin/update
export
PHP_VERSION
=
7.1
/usr/local/bin/update
export
PHP_VERSION
=
7.2
/usr/local/bin/update
echo
"Cleaning old container"
echo
"Cleaning old container"
docker
kill
l3drun
>
/dev/null
docker
kill
l3drun
>
/dev/null
This diff is collapsed.
Click to expand it.
run/scripts/update
+
4
−
0
View file @
88f366f6
#!/bin/bash
#!/bin/bash
if
[[
-n
${
PHP_VERSION
}
]]
;
then
if
[[
-n
${
PHP_VERSION
}
]]
;
then
IMAGEID
=
$(
docker image
ls
-q
registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
VERSION
}
|
head
-1
)
if
[[
!
-n
${
IMAGEID
}
]]
;
then
exit
fi
echo
"Updating the image ..."
echo
"Updating the image ..."
STATUS
=
$(
docker pull registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
VERSION
}
)
STATUS
=
$(
docker pull registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
VERSION
}
)
if
[[
"
$STATUS
"
==
*
"Status: Image is up to date"
*
]]
;
then
if
[[
"
$STATUS
"
==
*
"Status: Image is up to date"
*
]]
;
then
...
...
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