Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hsh-maxima
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
elc
hsh-maxima
Commits
409e14b6
Commit
409e14b6
authored
4 years ago
by
Lennart Kramer
Browse files
Options
Downloads
Patches
Plain Diff
Try committing to dockerhub
parent
427d01ec
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
buildimage.sh
+9
-12
9 additions, 12 deletions
buildimage.sh
with
10 additions
and
13 deletions
.gitlab-ci.yml
+
1
−
1
View file @
409e14b6
...
...
@@ -5,7 +5,7 @@ stages:
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
REGISTRY
:
"
http://registry:5000
"
REGISTRY
:
"
mathinstitut
"
# gitlab ci script taken from https://gist.github.com/danielneis/5c6140ec8150c6151a54bccd26950278
...
...
This diff is collapsed.
Click to expand it.
buildimage.sh
+
9
−
12
View file @
409e14b6
...
...
@@ -3,21 +3,14 @@
# arg2: maxima version
# arg3: stack or moodle version: "stack-XXX" or "moodlev.X"
# arg4: LIB_PATH
# arg5: REGISTRY
IP
# arg5: REGISTRY
or dockerhub id
# arg6: version of goemaxima
#
echo
"starting to build image for:"
echo
"sbcl:
$1
"
echo
"maxima:
$2
"
echo
"stack:
$3
"
# tag the image
if
[
-n
"
$6
"
]
;
then
IMAGENAME
=
"
$5
/goemaxima-
$3
:
$6
"
else
IMAGENAME
=
"
$5
/goemaxima-
$3
:dev"
fi
# check if the image already exists on the server
docker pull
"
${
IMAGENAME
}
"
IMAGENAME
=
"goemaxima:
$3
"
# build it
if
[
"
$3
"
=
"2017121800"
]
;
then
docker build
-t
"
${
IMAGENAME
}
"
--build-arg
MAXIMA_VERSION
=
"
$2
"
--build-arg
SBCL_VERSION
=
"
$1
"
--build-arg
LIB_PATH
=
"
$4
"
--build-arg
"MAX_LIB_PATH=/opt/maxima/assets/maximalocal.mac"
.
||
exit
1
...
...
@@ -25,6 +18,10 @@ else
docker build
-t
"
${
IMAGENAME
}
"
--build-arg
MAXIMA_VERSION
=
"
$2
"
--build-arg
SBCL_VERSION
=
"
$1
"
--build-arg
LIB_PATH
=
"
$4
"
.
||
exit
1
fi
echo
"
${
IMAGENAME
}
wurde erfolgreich gebaut."
# push it
docker push
"
${
IMAGENAME
}
"
# push the image
docker tag
"
$IMAGENAME
"
"
$5
/
$IMAGENAME
-dev"
docker push
"
$5
/
$IMAGENAME
-dev"
if
[
-n
"
$6
"
]
;
then
docker tag
"
$IMAGENAME
"
"
$5
/
$IMAGENAME
-
$6
"
docker push
"
$5
/
$IMAGENAME
-
$6
"
fi
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