diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..69edf7a --- /dev/null +++ b/web/.gitignore @@ -0,0 +1 @@ +./public diff --git a/web/archetypes/default.md b/web/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/web/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/web/content/_index.md b/web/content/_index.md new file mode 100644 index 0000000..4ee7366 --- /dev/null +++ b/web/content/_index.md @@ -0,0 +1,22 @@ + + +Welcome to the jungle, a set of machines with no imposed rules that are fully +controlled and maintained by their users. + +The configuration of all the machines is written in a centralized [git +repository][config] using the Nix language for NixOS. Changes in the +configuration of the machines are introduced by merge requests and pass a review +step before being deployed. + +[config]: https://pm.bsc.es/gitlab/rarias/jungle + +The machines have access to the large list of packages available in +[Nixpkgs][nixpkgs] and a custom set of packages named [bscpkgs][bscpkgs], +specifically tailored to our needs for HPC machines. Users can install their own +packages and made them system-wide available by opening a merge request. + +[nixpkgs]: https://github.com/NixOS/nixpkgs +[bscpkgs]: https://pm.bsc.es/gitlab/rarias/bscpkgs + +We have put a lot of effort to guarantee very good reproducibility properties in +the configuration of the machines and the software they use. diff --git a/web/content/eudy/_index.md b/web/content/eudy/_index.md new file mode 100644 index 0000000..dd432f1 --- /dev/null +++ b/web/content/eudy/_index.md @@ -0,0 +1,10 @@ +--- +title: "Eudy" +description: "Linux kernel experiments" +--- + +[](https://commons.wikimedia.org/w/index.php?curid=5817408) + +The *eudy* machine is destined as a playground for Linux kernel experiments. The +name is a shorthand of the Eudyptula species of little penguins found the New +Zealand and Australia. diff --git a/web/content/eudy/eudy.jpg b/web/content/eudy/eudy.jpg new file mode 100644 index 0000000..42b2c75 Binary files /dev/null and b/web/content/eudy/eudy.jpg differ diff --git a/web/content/grafana/_index.md b/web/content/grafana/_index.md new file mode 100644 index 0000000..e9cdbc5 --- /dev/null +++ b/web/content/grafana/_index.md @@ -0,0 +1,6 @@ +--- +title: "Grafana" +description: "Monitor metrics" +--- + +If you are reading this page, the proxy to the Grafana service is not working. diff --git a/web/content/hut/_index.md b/web/content/hut/_index.md new file mode 100644 index 0000000..4d70451 --- /dev/null +++ b/web/content/hut/_index.md @@ -0,0 +1,18 @@ +--- +title: "Hut" +description: "Control node" +date: 2023-06-13T19:36:57+02:00 +--- + + + +From the hut we monitor and control other nodes. It consist of one node only, +which is available at `hut` or `xeon07`. It runs the following services: + +- Prometheus: to store the monitoring data. +- Grafana: to plot the data in the web browser. +- Slurmctld: to manage the SLURM nodes. +- Gitlab runner: to run CI jobs from Gitlab. + +This node is prone to interruptions from all the services it runs, so it is not +a good candidate for low noise executions. diff --git a/web/content/hut/hut.jpg b/web/content/hut/hut.jpg new file mode 100644 index 0000000..26f74c2 Binary files /dev/null and b/web/content/hut/hut.jpg differ diff --git a/web/content/lake/_index.md b/web/content/lake/_index.md new file mode 100644 index 0000000..f1c8950 --- /dev/null +++ b/web/content/lake/_index.md @@ -0,0 +1,10 @@ +--- +title: "Lake" +description: "Data storage" +date: 2023-06-13T19:36:57+02:00 +draft: true +--- + + + +Data storage diff --git a/web/content/lake/lake.jpg b/web/content/lake/lake.jpg new file mode 100644 index 0000000..5e72141 Binary files /dev/null and b/web/content/lake/lake.jpg differ diff --git a/web/content/owl/_index.md b/web/content/owl/_index.md new file mode 100644 index 0000000..d6fbb1b --- /dev/null +++ b/web/content/owl/_index.md @@ -0,0 +1,10 @@ +--- +title: "Owl" +description: "Low system noise" +--- + + + +Much like the silent flight of an owl at night, these nodes are configured to +minimize the system noise and let programs run undisturbed. The list of nodes is +`owl[1-2]` and are available for jobs with SLURM. diff --git a/web/content/owl/owl.jpg b/web/content/owl/owl.jpg new file mode 100644 index 0000000..5e0441a Binary files /dev/null and b/web/content/owl/owl.jpg differ diff --git a/web/hugo.toml b/web/hugo.toml new file mode 100644 index 0000000..39357f3 --- /dev/null +++ b/web/hugo.toml @@ -0,0 +1,5 @@ +baseURL = 'https://jungle.bsc.es/' +languageCode = 'en-us' +title = 'The jungle' +theme = 'PaperMod' +sectionPagesMenu = "main" diff --git a/web/static/hut-big.jpg b/web/static/hut-big.jpg new file mode 100644 index 0000000..196abc1 Binary files /dev/null and b/web/static/hut-big.jpg differ diff --git a/web/static/jungle.jpg b/web/static/jungle.jpg new file mode 100644 index 0000000..8c06610 Binary files /dev/null and b/web/static/jungle.jpg differ diff --git a/web/static/nodes.jpg b/web/static/nodes.jpg new file mode 100644 index 0000000..45f9e2d Binary files /dev/null and b/web/static/nodes.jpg differ diff --git a/web/static/rainforest.jpg b/web/static/rainforest.jpg new file mode 100644 index 0000000..31ed09e Binary files /dev/null and b/web/static/rainforest.jpg differ diff --git a/web/themes/PaperMod/.github/ISSUE_TEMPLATE/bug_report.md b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..b7d5b28 --- /dev/null +++ b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,50 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: '' + +--- + + + +**Describe the bug** + + + - Device/Os: [e.g. Android 10] + - Type: [e.g. Desktop/Mobile] + - Browser and version [e.g. Chrome 86.0]: + - Hugo Version [ >=0.97.1 expected]: + - Theme Version [e.g. v4.0, master, or commit-id ]: + +**Steps to reproduce the behavior:** + + +**Expected behavior**: + + +**Repo/Source where this issue can be reproduced**: + + +**Screenshots** + + +**Additional context** + diff --git a/web/themes/PaperMod/.github/ISSUE_TEMPLATE/config.yml b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..1a4dd9b --- /dev/null +++ b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: PaperMod Discussions + url: https://github.com/adityatelange/hugo-PaperMod/discussions + about: Please ask and answer questions/doubts here, do not open an issue for questions. diff --git a/web/themes/PaperMod/.github/ISSUE_TEMPLATE/new-blank-issue.md b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/new-blank-issue.md new file mode 100644 index 0000000..dbc48f1 --- /dev/null +++ b/web/themes/PaperMod/.github/ISSUE_TEMPLATE/new-blank-issue.md @@ -0,0 +1,7 @@ +--- +name: New Blank Issue +about: Anything other than bug report +title: "" +labels: "" +assignees: "" +--- diff --git a/web/themes/PaperMod/.github/PULL_REQUEST_TEMPLATE.md b/web/themes/PaperMod/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..00b856c --- /dev/null +++ b/web/themes/PaperMod/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,44 @@ + + + +**What does this PR change? What problem does it solve?** + + + + +**Was the change discussed in an issue or in the Discussions before?** + + + + +## PR Checklist + +- [ ] This change adds/updates translations and I have used the [template present here](https://github.com/adityatelange/hugo-PaperMod/wiki/Translations#want-to-add-your-language-). +- [ ] I have enabled [maintainer edits for this PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork). +- [ ] I have verified that the code works as described/as intended. +- [ ] This change adds a Social Icon which has a permissive license to use it. +- [ ] This change **does not** include any CDN resources/links. +- [ ] This change **does not** include any unrelated scripts such as bash and python scripts. +- [ ] This change updates the overridden internal templates from HUGO's repository. diff --git a/web/themes/PaperMod/.github/stale.yml b/web/themes/PaperMod/.github/stale.yml new file mode 100644 index 0000000..7b5f571 --- /dev/null +++ b/web/themes/PaperMod/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 7 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 3 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - keep +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/web/themes/PaperMod/.github/workflows/gh-pages.yml b/web/themes/PaperMod/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..4f59e30 --- /dev/null +++ b/web/themes/PaperMod/.github/workflows/gh-pages.yml @@ -0,0 +1,80 @@ +name: Deploy Hugo PaperMod Demo to Pages + +on: + push: + paths-ignore: + - "images/**" + - "LICENSE" + - "README.md" + branches: + - master + - exampleSite + workflow_dispatch: + # manual run + inputs: + hugoVersion: + description: "Hugo Version" + required: false + default: "0.97.1" + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +# Default to bash +defaults: + run: + shell: bash + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: "0.97.1" + steps: + - name: Check version + if: ${{ github.event.inputs.hugoVersion }} + run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}" + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Checkout + uses: actions/checkout@v3 + with: + ref: exampleSite + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + - name: Get Theme + run: git submodule update --init --recursive + - name: Update theme to Latest commit + run: git submodule update --remote --merge + - name: Build with Hugo + run: | + hugo \ + --buildDrafts --gc --verbose \ + --baseURL ${{ steps.pages.outputs.base_url }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./public + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/web/themes/PaperMod/LICENSE b/web/themes/PaperMod/LICENSE new file mode 100644 index 0000000..34f0885 --- /dev/null +++ b/web/themes/PaperMod/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2020 nanxiaobei and adityatelange +Copyright (c) 2021-2023 adityatelange + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/web/themes/PaperMod/README.md b/web/themes/PaperMod/README.md new file mode 100644 index 0000000..00dec5a --- /dev/null +++ b/web/themes/PaperMod/README.md @@ -0,0 +1,103 @@ +
+
+
{{ .Get "summary" | markdownify }}
+ {{ .Inner | markdownify }}
+
+ {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}{{ end }}
+ {{- end }} +