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
8037c7be
Commit
8037c7be
authored
4 years ago
by
Lennart Kramer
Browse files
Options
Downloads
Patches
Plain Diff
version with tag
parent
ec3c7c4f
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
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
build.sh
+2
-1
2 additions, 1 deletion
build.sh
buildimage.sh
+2
-2
2 additions, 2 deletions
buildimage.sh
src/web/web.go
+1
-1
1 addition, 1 deletion
src/web/web.go
with
10 additions
and
5 deletions
.gitlab-ci.yml
+
5
−
1
View file @
8037c7be
...
...
@@ -30,7 +30,10 @@ build_webservice:
tags
:
-
docker
script
:
-
./build.sh ${REGISTRY}
-
./build.sh "$REGISTRY" "$CI_COMMIT_TAG"
only
:
-
tags
test_maxima
:
image
:
"
$REGISTRY/moodle-ci-stack"
...
...
@@ -50,3 +53,4 @@ test_maxima:
-
docker
script
:
-
bash testimage.sh
when
:
manual
This diff is collapsed.
Click to expand it.
build.sh
+
2
−
1
View file @
8037c7be
...
...
@@ -4,5 +4,6 @@ while read -r line; do
maxima_version
=
"
$(
echo
"
$line
"
|
cut
-f1
)
"
sbcl_version
=
"
$(
echo
"
$line
"
|
cut
-f2
)
"
stack_version
=
"
$(
echo
"
$line
"
|
cut
-f3
)
"
./buildimage.sh
"
${
sbcl_version
}
"
"
${
maxima_version
}
"
"
$stack_version
"
"stack/
$stack_version
/maxima"
"
${
REGISTRY
}
"
||
exit
1
goemaxima_version
=
"
$2
"
./buildimage.sh
"
${
sbcl_version
}
"
"
${
maxima_version
}
"
"
$stack_version
"
"stack/
$stack_version
/maxima"
"
${
REGISTRY
}
"
"
$goemaxima_version
"
||
exit
1
done
This diff is collapsed.
Click to expand it.
buildimage.sh
+
2
−
2
View file @
8037c7be
...
...
@@ -4,13 +4,14 @@
# arg3: stack or moodle version: "stack-XXX" or "moodlev.X"
# arg4: LIB_PATH
# arg5: REGISTRY IP
# arg6: version of goemaxima
#
echo
"starting to build image for:"
echo
"sbcl:
$1
"
echo
"maxima:
$2
"
echo
"stack:
$3
"
# tag the image
IMAGENAME
=
"
$5
/goemaxima:
$
3
"
IMAGENAME
=
"
$5
/goemaxima
-
$3
:
$
6
"
# check if the image already exists on the server
docker pull
"
${
IMAGENAME
}
"
# build it
...
...
@@ -20,7 +21,6 @@ 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."
# testing?
# push it
docker push
"
${
IMAGENAME
}
"
This diff is collapsed.
Click to expand it.
src/web/web.go
+
1
−
1
View file @
8037c7be
...
...
@@ -239,7 +239,7 @@ func process_cleanup(user *User, user_queue chan<- *User, tmp_dir string) {
func
handler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
,
queue
<-
chan
*
ChildProcess
,
user_queue
chan
<-
*
User
,
metrics
*
Metrics
)
{
if
r
.
Method
==
"GET"
&&
r
.
FormValue
(
"input"
)
==
""
{
hostname
,
_
:=
os
.
Hostname
()
fmt
.
Fprintf
(
w
,
"Hostname: %s, version:
0.1.1
\n
"
,
hostname
)
fmt
.
Fprintf
(
w
,
"Hostname: %s, version:
1.0.0
\n
"
,
hostname
)
return
}
// the maxima input to be evaluated
...
...
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