Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
blockloop committed Apr 15, 2024
1 parent 32c6ac6 commit 9865b96
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/node:lts-alpine

RUN \
apk add --no-cache \
sudo git curl wget openssl ca-certificates openssh bash

ENTRYPOINT ["/bin/bash"]
7 changes: 7 additions & 0 deletions Dockerfile.alpine-rust
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ci-images:alpine

RUN \
apk add --no-cache rustup

RUN \
rustup-init -y && mv /root/.cargo/bin/* /usr/local/bin
7 changes: 7 additions & 0 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/node:lts-bookworm

RUN \
apt-get update && \
apt-get install -y sudo git curl wget openssl ca-certificates openssh-client bash

ENTRYPOINT ["/bin/bash"]
6 changes: 6 additions & 0 deletions Dockerfile.debian-rust
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ci-images:debian

RUN \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path && \
mv /root/.cargo/bin/* /usr/local/bin

14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

DOCKER_REGISTRY := ghcr.io/privacy-com/ci-images

DOCKERFILES := $(wildcard Dockerfile.*)

build-all: $(patsubst Dockerfile.%,docker-build-%,$(notdir $(DOCKERFILES)))
publish-all: $(patsubst Dockerfile.%,docker-push-%,$(notdir $(DOCKERFILES)))

docker-build-%: Dockerfile.%
docker build . -f Dockerfile.$* -t $(DOCKER_REGISTRY):$*

docker-push-%:
docker push $(DOCKER_REGISTRY):$*

0 comments on commit 9865b96

Please sign in to comment.