mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-10 10:38:45 +00:00
Compare commits
28 Commits
Xe/devcont
...
Xe/store-i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
364622d890 | ||
|
|
41993466a1 | ||
|
|
3894469d98 | ||
|
|
8a3520466b | ||
|
|
066e642310 | ||
|
|
e8e70122d6 | ||
|
|
5b337cd322 | ||
|
|
a6e6caad7b | ||
|
|
9e19dc1ee4 | ||
|
|
b96ab68e85 | ||
|
|
4845f8515d | ||
|
|
3808f7ba17 | ||
|
|
59f69d48d2 | ||
|
|
ded9c32801 | ||
|
|
06b2dca7fc | ||
|
|
1dceab889c | ||
|
|
45f6fa2194 | ||
|
|
ddb7b0e99e | ||
|
|
acee62a9d0 | ||
|
|
2b3bfdc40b | ||
|
|
e538f55e89 | ||
|
|
b8e0c1a961 | ||
|
|
def6f2dc90 | ||
|
|
e5c39facfe | ||
|
|
18b21330df | ||
|
|
0f9da86003 | ||
|
|
32afc9c040 | ||
|
|
9245c4beec |
@@ -3,7 +3,9 @@ FROM ghcr.io/xe/devcontainer-base/pre/go
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY go.mod go.sum package.json package-lock.json ./
|
COPY go.mod go.sum package.json package-lock.json ./
|
||||||
RUN apt-get update \
|
RUN go install github.com/a-h/templ/cmd/templ \
|
||||||
|
&& npx --yes playwright@1.52.0 install --with-deps\
|
||||||
|
&& apt-get update \
|
||||||
&& apt-get -y install zstd brotli redis \
|
&& apt-get -y install zstd brotli redis \
|
||||||
&& mkdir -p /home/vscode/.local/share/fish \
|
&& mkdir -p /home/vscode/.local/share/fish \
|
||||||
&& chown -R vscode:vscode /home/vscode/.local/share/fish \
|
&& chown -R vscode:vscode /home/vscode/.local/share/fish \
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
|
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
|
||||||
{
|
{
|
||||||
"name": "Dev",
|
"name": "Dev",
|
||||||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
|
// "build": {
|
||||||
|
// "dockerfile": "./Dockerfile",
|
||||||
|
// "context": "..",
|
||||||
|
// "cacheFrom": [
|
||||||
|
// "type=registry,ref=ghcr.io/techarohq/anubis/devcontainer"
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
"dockerComposeFile": ["./docker-compose.yaml"],
|
"dockerComposeFile": ["./docker-compose.yaml"],
|
||||||
"service": "workspace",
|
"service": "workspace",
|
||||||
"workspaceFolder": "/workspace/anubis",
|
"workspaceFolder": "/workspace/anubis",
|
||||||
|
|||||||
@@ -1,13 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
playwright:
|
|
||||||
image: mcr.microsoft.com/playwright:v1.52.0-noble
|
|
||||||
init: true
|
|
||||||
network_mode: service:workspace
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- npx -y playwright@1.52.0 run-server --port 9001 --host 0.0.0.0
|
|
||||||
|
|
||||||
valkey:
|
valkey:
|
||||||
image: valkey/valkey:8
|
image: valkey/valkey:8
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
@@ -18,6 +9,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: .devcontainer/Dockerfile
|
dockerfile: .devcontainer/Dockerfile
|
||||||
|
cache_from:
|
||||||
|
- "type=registry,ref=ghcr.io/techarohq/anubis/devcontainer"
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/workspace/anubis:cached
|
- ../:/workspace/anubis:cached
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
47
.github/workflows/devcontainer.yml
vendored
Normal file
47
.github/workflows/devcontainer.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
name: Dev container prebuild
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
tags: ["v*.*.*"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
devcontainer:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
with:
|
||||||
|
fetch-tags: true
|
||||||
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
||||||
|
|
||||||
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
|
with:
|
||||||
|
node-version: latest
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install skopeo
|
||||||
|
|
||||||
|
- name: Log into registry
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: techarohq
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Pre-build dev container image
|
||||||
|
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
|
||||||
|
with:
|
||||||
|
imageName: ghcr.io/techarohq/anubis/devcontainer
|
||||||
|
cacheFrom: ghcr.io/techarohq/anubis/devcontainer
|
||||||
|
push: always
|
||||||
|
platform: linux/amd64,linux/arm64
|
||||||
@@ -21,4 +21,8 @@ If you use a browser extension such as [JShelter](https://jshelter.org/), you wi
|
|||||||
|
|
||||||
## Does Anubis mine Bitcoin?
|
## Does Anubis mine Bitcoin?
|
||||||
|
|
||||||
No. Anubis does not mine Bitcoin or any other cryptocurrency.
|
No. Anubis does not mine Bitcoin.
|
||||||
|
|
||||||
|
In order to mine bitcoin, you need to download a copy of the blockchain (so you have the state required to do mining) and also broadcast your mined blocks to the network should you reach a hash with the right number of leading zeroes. You also need to continuously read for newly broadcasted transactions so you can batch them into a block. This requires gigabytes of data to be transferred from the server to the client.
|
||||||
|
|
||||||
|
Anubis transfers two digit numbers of kilobytes from the server to the client (which you can independently verify with your browser's Developer Tools feature). This is orders of magnitude below what is required to mine Bitcoin.
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ This page contains a non-exhaustive list with all websites using Anubis.
|
|||||||
- https://gitlab.postmarketos.org/
|
- https://gitlab.postmarketos.org/
|
||||||
- https://wiki.koha-community.org/
|
- https://wiki.koha-community.org/
|
||||||
- https://extensions.typo3.org/
|
- https://extensions.typo3.org/
|
||||||
- https://ebird.org/
|
|
||||||
- <details>
|
- <details>
|
||||||
<summary>FreeCAD</summary>
|
<summary>FreeCAD</summary>
|
||||||
- https://forum.freecad.org/
|
- https://forum.freecad.org/
|
||||||
|
|||||||
@@ -127,8 +127,3 @@ impressum:
|
|||||||
status_codes:
|
status_codes:
|
||||||
CHALLENGE: 200
|
CHALLENGE: 200
|
||||||
DENY: 200
|
DENY: 200
|
||||||
|
|
||||||
store:
|
|
||||||
backend: bbolt
|
|
||||||
parameters:
|
|
||||||
path: /xe/data/anubis/data.bdb
|
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ spec:
|
|||||||
- name: anubis
|
- name: anubis
|
||||||
configMap:
|
configMap:
|
||||||
name: anubis-cfg
|
name: anubis-cfg
|
||||||
- name: temporary-data
|
|
||||||
emptyDir: {}
|
|
||||||
containers:
|
containers:
|
||||||
- name: anubis-docs
|
- name: anubis-docs
|
||||||
image: ghcr.io/techarohq/anubis/docs:main
|
image: ghcr.io/techarohq/anubis/docs:main
|
||||||
@@ -53,8 +51,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: anubis
|
- name: anubis
|
||||||
mountPath: /xe/cfg/anubis
|
mountPath: /xe/cfg/anubis
|
||||||
- name: temporary-data
|
|
||||||
mountPath: /xe/data/anubis
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
|
|||||||
Reference in New Issue
Block a user