-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test this website with score-compose
Signed-off-by: Mathieu Benoit <[email protected]>
- Loading branch information
1 parent
03bddf7
commit ef9f013
Showing
5 changed files
with
68 additions
and
2 deletions.
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
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 @@ | ||
# We use golang because hugo depends on Go as it's module downloader | ||
FROM golang:alpine | ||
# We then install shared libs and dynamic linking dependencies | ||
RUN apk add --no-cache gcc g++ musl-dev git yarn gcompat npm | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
|
||
# Install all the packages | ||
RUN yarn install | ||
|
||
# Do an initial hugo build | ||
RUN yarn hugo --verbose | ||
|
||
# Run the hugo server at launch | ||
CMD [ "yarn", "hugo", "server", "--themesDir", "../..", "--disableFastRender", "--renderToMemory", "--bind", "0.0.0.0" ] |
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,20 @@ | ||
apiVersion: score.dev/v1b1 | ||
metadata: | ||
name: score-docs | ||
containers: | ||
main: | ||
image: . | ||
resources: | ||
dns: | ||
type: dns | ||
route: | ||
type: route | ||
params: | ||
host: ${resources.dns.host} | ||
path: / | ||
port: 8080 | ||
service: | ||
ports: | ||
tcp: | ||
port: 8080 | ||
targetPort: 8080 |