Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
97718e87
Commit
97718e87
authored
3 years ago
by
bikerdanny
Browse files
Options
Downloads
Patches
Plain Diff
Added linkchecker test
parent
b8b5c440
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+11
-1
11 additions, 1 deletion
.gitlab-ci.yml
linkchecker/Dockerfile
+6
-4
6 additions, 4 deletions
linkchecker/Dockerfile
with
17 additions
and
5 deletions
.gitlab-ci.yml
+
11
−
1
View file @
97718e87
...
...
@@ -3,7 +3,9 @@ variables:
GIT_STRATEGY
:
clone
BASE_IMAGE
:
webpage:base
LINTER_IMAGE
:
webpage:linter
LINKCHECKER_IMAGE
:
webpage:linkchecker
LINKCHECKER_IMAGE
:
linkchecker
TEST_NETWORK
:
testnet
TEST_CONTAINER_NAME
:
webpage
stages
:
-
build
...
...
@@ -29,3 +31,11 @@ test_linter:
script
:
-
docker run --rm ${LINTER_IMAGE} --config /src/linter/config.json /src/doc.zih.tu-dresden.de/docs
test_linkchecker
:
stage
:
test
script
:
-
docker network create ${TEST_NETWORK}
-
docker run -d --rm --name ${TEST_CONTAINER_NAME} --network ${TEST_NETWORK} ${BASE_IMAGE} mkdocs serve --dev-addr 0.0.0.0:8000
-
docker run --rm ${LINKCHECKER_IMAGE} --check-extern --ignore-url=http://0.0.0.0:8000 http://webpage:8000
-
docker stop ${TEST_CONTAINER_NAME}
-
docker network rm ${TEST_NETWORK}
This diff is collapsed.
Click to expand it.
linkchecker/Dockerfile
+
6
−
4
View file @
97718e87
FROM
w
eb
page:base
FROM
d
eb
ian:buster
###############
# Linkchecker #
###############
RUN
apt update
&&
apt
install
-y
nodejs npm
RUN
npm
install
-g
markdown-link-check
RUN
apt update
&&
apt
install
-y
linkchecker
WORKDIR
/src/linkchecker
ENTRYPOINT
["/usr/bin/linkchecker"]
CMD
["--help"]
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