commit 4a6135f6e4c9c21a9a5fb7f693cd71ba303839b0 Author: Morre Date: Thu Jul 27 22:58:06 2023 +0200 feat: initial commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cce1f05 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +default_stages: [commit] +repos: + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.0.0 + hooks: + - id: prettier + + - repo: https://github.com/hadolint/hadolint + rev: v2.12.0 + hooks: + - id: hadolint-docker diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e622aeb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:22.04 + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +# hadolint ignore=DL3008 +RUN apt-get update && apt-get install --no-install-recommends -y \ + lsb-release \ + gnupg \ + curl \ + && rm -rf /var/lib/apt/lists/* + +RUN set -o pipefail && curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null +COPY nodesource.list /etc/apt/sources.list.d/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c88b3b --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# runner-images + +This uses https://github.com/actions/runner-images/blob/9a403df7bda5868203ec8bd1036c28ad12fee294/images/linux/Ubuntu2204-Readme.md +as inspiration to build a base image that is useful without installing many different packages. + +## Development + +Set up pre-commit before starting development: + +```sh +pre-commit install +``` diff --git a/nodesource.list b/nodesource.list new file mode 100644 index 0000000..73fa4db --- /dev/null +++ b/nodesource.list @@ -0,0 +1,2 @@ +deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main +deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main