From 4c3dca155cc6a59ea61d8d0ce5b7434028c74694 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 6 May 2024 15:22:34 +0200 Subject: [PATCH] Init --- docker-bake.hcl | 15 +++++++++++++++ runner.Dockerfile | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docker-bake.hcl create mode 100644 runner.Dockerfile diff --git a/docker-bake.hcl b/docker-bake.hcl new file mode 100644 index 0000000..46a5f7f --- /dev/null +++ b/docker-bake.hcl @@ -0,0 +1,15 @@ +variable "REG" { + default = "registry.serguzim.me" +} +variable "REPO_RUNNER" { + default = "emgauwa/runner" +} +variable "TAG" { + default = "latest" +} + +target "runner" { + output = ["type=docker"] + dockerfile = "./runner.Dockerfile" + tags = ["${REG}/${REPO_RUNNER}:latest", "${REG}/${REPO_RUNNER}:${TAG}"] +} diff --git a/runner.Dockerfile b/runner.Dockerfile new file mode 100644 index 0000000..1c13af4 --- /dev/null +++ b/runner.Dockerfile @@ -0,0 +1,10 @@ +FROM node:16-bullseye + +RUN apt update \ + && apt install -y docker.io \ + && curl https://sh.rustup.rs -sSf | sh -s -- -y \ + && . "$HOME/.cargo/env" \ + && cargo install cross + +ENV CROSS_CONTAINER_IN_CONTAINER=true +