-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
126 additions
and
2,205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM mcr.microsoft.com/devcontainers/javascript-node:22-bookworm | ||
LABEL repository="github.com/Galaxypedia-Wiki/Galaxypedia" | ||
LABEL maintainer="cswimr <[email protected]>" | ||
|
||
ARG USER=node | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
# RUN usermod -s /usr/bin/zsh ${USER} | ||
|
||
# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version. | ||
ARG VARIANT=hugo_extended | ||
# VERSION can be either 'latest' or a specific version number | ||
ARG VERSION=0.139.0 | ||
|
||
# Download Hugo | ||
RUN case ${VERSION} in \ | ||
latest) \ | ||
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\ | ||
esac && \ | ||
echo ${VERSION} && \ | ||
case $(uname -m) in \ | ||
aarch64) \ | ||
export ARCH=ARM64 ;; \ | ||
*) \ | ||
export ARCH=64bit ;; \ | ||
esac && \ | ||
echo ${ARCH} && \ | ||
curl -Lo ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-${ARCH}.tar.gz && \ | ||
tar xf ${VERSION}.tar.gz && \ | ||
mv hugo /usr/bin/hugo | ||
|
||
# Hugo dev server port | ||
EXPOSE 1313 | ||
|
||
RUN corepack enable | ||
|
||
USER ${USER} | ||
ARG HOME=/home/${USER} | ||
WORKDIR ${HOME} | ||
|
||
ARG OHMYZSH_HOME=${HOME}/.oh-my-zsh | ||
|
||
RUN <<EOT | ||
hugo completion zsh > ${OHMYZSH_HOME}/plugins/git/_hugo | ||
EOT |
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,44 @@ | ||
{ | ||
"name": "Galaxypedia", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/bin/zsh" | ||
} | ||
}, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.cache": true, | ||
"**/.pnpm-store": true | ||
} | ||
}, | ||
"extensions": [ | ||
"esbenp.prettier-vscode", | ||
"davidanson.vscode-markdownlint", | ||
"kaellarkin.hugo-shortcode-syntax", | ||
"budparr.language-hugo-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"vasubasraj.flashpost", | ||
"redhat.vscode-yaml", | ||
"GitHub.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"ms-azuretools.vscode-docker" | ||
] | ||
} | ||
}, | ||
"containerEnv": { | ||
"HUGO_CACHEDIR": "/workspaces/Galaxypedia/.cache" | ||
}, | ||
"mounts": [ | ||
"source=hugo-cache,target=/workspaces/Galaxypedia/.cache,type=volume" | ||
], | ||
"remoteUser": "node", | ||
"postCreateCommand": "sudo chown -R node:node /workspaces/Galaxypedia/.cache && pnpm i" | ||
} |
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
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Hugo Server", | ||
"type": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "pnpm", | ||
"runtimeArgs": ["serve"], | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"name": "Hugo Server (Fast Render disabled)", | ||
"type": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "pnpm", | ||
"runtimeArgs": ["serve", "--disableFastRender"], | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.