forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request runatlantis#441 from runatlantis/website-testing
Test website for broken links during build.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This Dockerfile builds runatlantis/ci-link-checker. | ||
# It is used in CircleCI to check if the website has any broken links. | ||
FROM node:11 | ||
ENV DOCKERIZE_VERSION v0.6.0 | ||
|
||
# Muffet is used to check for broken links. | ||
COPY --from=raviqqe/muffet:1.0.3 muffet /usr/local/bin/muffet | ||
|
||
# http-server is used to serve the website locally as muffet checks it. | ||
RUN yarn global add http-server | ||
|
||
# Dockerize is used to wait until the server is up and running before running | ||
# muffet. | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz |