The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci(devcontainer): build for aarch64

Signed-off-by: Xe Iaso <me@xeiaso.net>

+32 -9
+17
.devcontainer/Dockerfile
··· 1 + FROM alpine:edge AS build 2 + 3 + # dhall-json for configuration building 4 + FROM --platform=${BUILDPLATFORM} alpine:${ALPINE_VERSION} AS dhall-json 5 + ARG DHALL_VERSION=1.42.2 6 + ARG DHALL_JSON_VERSION=1.7.12 7 + RUN mkdir -p /app 8 + WORKDIR /app 9 + RUN set -x \ 10 + && apk add -U curl bzip2 ca-certificates \ 11 + && curl -L -o dhall-linux.tar.bz2 https://github.com/dhall-lang/dhall-haskell/releases/download/${DHALL_VERSION}/dhall-json-${DHALL_JSON_VERSION}-x86_64-linux.tar.bz2 \ 12 + && tar -xvjf dhall-linux.tar.bz2 \ 13 + && mv bin/dhall-to-json . 14 + 15 + FROM ghcr.io/xe/devcontainer-base/pre/go 16 + 17 + COPY --from=build /app/dhall-to-json /usr/local/bin/dhall-to-json
+10 -8
.devcontainer/devcontainer.json
··· 3 3 { 4 4 "name": "Dev", 5 5 // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile 6 - "image": "mcr.microsoft.com/devcontainers/base:bookworm", 6 + "build": { 7 + "dockerfile": "Dockerfile", 8 + "cacheFrom": [ 9 + "type=registry,ref=ghcr.io/xe/site/devcontainer" 10 + ] 11 + }, 7 12 // Features to add to the dev container. More info: https://containers.dev/features. 8 13 "features": { 9 - "ghcr.io/devcontainers/features/go:1": {}, 10 - "ghcr.io/devcontainers/features/node:1": {}, 11 14 "ghcr.io/xe/devcontainer-features/deno:1.2.1": {}, 12 - "ghcr.io/xe/devcontainer-features/fish:0.1.1": {}, 13 - "ghcr.io/devcontainer-community/devcontainer-features/atuin.sh:1": {}, 14 15 "ghcr.io/devcontainers-extra/features/protoc:1": {}, 15 16 "ghcr.io/mrsimonemms/devcontainers/buf:1": {}, 16 - "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, 17 17 "ghcr.io/michidk/devcontainers-features/typst:1": {} 18 18 }, 19 19 "mounts": [ 20 20 "source=${localEnv:HOME}${localEnv:USERPROFILE}/.local/share/atuin,target=/home/vscode/.local/share/atuin,type=bind,consistency=cached" 21 21 ], 22 22 // Use 'forwardPorts' to make a list of ports inside the container available locally. 23 - "forwardPorts": [3000], 23 + "forwardPorts": [ 24 + 3000 25 + ], 24 26 // Configure tool-specific properties. 25 27 "customizations": { 26 28 "vscode": { ··· 38 40 } 39 41 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. 40 42 // "remoteUser": "root" 41 - } 43 + }
+5 -1
.github/workflows/devcontainer.yml
··· 12 12 - name: Checkout repository 13 13 uses: actions/checkout@v4 14 14 15 + - name: Set up QEMU 16 + uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 17 + 15 18 - name: Set up Docker Buildx 16 - uses: docker/setup-buildx-action@v3 19 + uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 17 20 18 21 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 19 22 with: ··· 33 36 imageName: ghcr.io/xe/site/devcontainer 34 37 cacheFrom: ghcr.io/xe/site/devcontainer 35 38 push: always 39 + platform: linux/amd64,linux/arm64