Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
strudel2_backend
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
strudel2_backend
Commits
d5b1f232
Commit
d5b1f232
authored
4 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
Custom 502 error page when the tunnels don't open correctly
parent
0c6eb1da
No related branches found
No related tags found
3 merge requests
!77
Revert "disable agressive kill and restart"
,
!59
Test
,
!58
Dev
Pipeline
#14043
failed
4 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
html/502.html
+24
-0
24 additions, 0 deletions
html/502.html
nginx_snippets/tes.conf
+6
-0
6 additions, 0 deletions
nginx_snippets/tes.conf
with
36 additions
and
0 deletions
.gitlab-ci.yml
+
6
−
0
View file @
d5b1f232
...
@@ -32,6 +32,8 @@ deploy_test:
...
@@ -32,6 +32,8 @@ deploy_test:
script
:
script
:
-
echo "deploying test"
-
echo "deploying test"
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
mkdir -p /opt/strudel2/errors/
-
cp ./html/* /opt/strudel2/errors/
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
...
@@ -52,6 +54,8 @@ deploy_dev:
...
@@ -52,6 +54,8 @@ deploy_dev:
script
:
script
:
-
echo "deploying dev"
-
echo "deploying dev"
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
mkdir -p /opt/strudel2/errors/
-
cp ./html/* /opt/strudel2/errors/
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
...
@@ -72,6 +76,8 @@ deploy_prod:
...
@@ -72,6 +76,8 @@ deploy_prod:
script
:
script
:
-
echo "deploying prod"
-
echo "deploying prod"
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
cp ./nginx_snippets/* /etc/nginx/snippets/
-
mkdir -p /opt/strudel2/errors/
-
cp ./html/* /opt/strudel2/errors/
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker login -u $DOCKERHUBUSER -p $DOCKERHUBPASSWORD docker.io
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker stop strudel2_backend || echo "Failed to stop existing container"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
-
docker ps -a -q | xargs -I{} docker rm {} || echo "No containers to remove"
...
...
This diff is collapsed.
Click to expand it.
html/502.html
0 → 100644
+
24
−
0
View file @
d5b1f232
<!DOCTYPE html>
<pre
id=
"log"
></pre>
<html>
<head>
</head>
<body>
Something isn't quite right
<p>
Usually this indicates that the cluster hasn't quite managed to start your program and reloading this page should fix the issue
<p>
This page should reload in a few seconds.
<p>
If that still doesn't work, try closing this tab and clicking connect again
</body>
<script>
function
sleep
(
ms
,
f
)
{
return
(
setTimeout
(
f
,
ms
)
)
}
sleep
(
5000
,
function
()
{
window
.
location
.
reload
()
})
</script>
</html>
This diff is collapsed.
Click to expand it.
nginx_snippets/tes.conf
+
6
−
0
View file @
d5b1f232
error_page
502
/
502
.
html
;
location
/
502
.
html
{
root
/
opt
/
strudel2
/
errors
/;
}
location
/
tes
/ {
location
/
tes
/ {
proxy_pass
http
://
localhost
:
8080
/;
proxy_pass
http
://
localhost
:
8080
/;
proxy_http_version
1
.
1
;
proxy_http_version
1
.
1
;
...
...
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