Compare commits
76 commits
63fcab0d4b
...
antifascis
Author | SHA1 | Date | |
---|---|---|---|
|
916ee511ef | ||
|
0e8b6ac71a | ||
|
5695625e74 | ||
|
fc1a12e592 | ||
|
f96f125c1c | ||
|
4d254a0874 | ||
|
000ac53f39 | ||
|
9a8eef1e42 | ||
|
41354bbc95 | ||
|
4eb8a6ff59 | ||
|
c0e6b8150b | ||
|
f7da597784 | ||
|
af4e027735 | ||
|
7805baf704 | ||
|
b9d1f8be3b | ||
|
b99a8111d8 | ||
|
aa086a76af | ||
|
fed7849c43 | ||
|
2a72840be0 | ||
|
397dff920a | ||
|
e66b364db7 | ||
|
d189e48029 | ||
|
b921379aa0 | ||
|
8dd7d4605a | ||
|
f20cc489bc | ||
|
d11e588f03 | ||
|
fda86bc6ea | ||
|
5085c7e8df | ||
|
1233c89aff | ||
|
7cf343fbfc | ||
|
3dde92d4de | ||
|
3e098e8c24 | ||
|
dbb0134594 | ||
|
582b83d3fa | ||
|
6d0ff2a9c4 | ||
|
5d35cad642 | ||
|
d4b964486e | ||
|
c3038aec31 | ||
|
1e981e4851 | ||
|
fedf64f2b9 | ||
|
24c31e7eb8 | ||
|
da19bd76f8 | ||
|
b422099b76 | ||
|
ed077827ea | ||
|
1068b67884 | ||
|
434501ef54 | ||
|
63f20e23bc | ||
|
a7bddb12e8 | ||
|
06676378e5 | ||
|
238b418f58 | ||
|
2a304a6321 | ||
|
5c21a038ce | ||
|
dcf07f90e7 | ||
|
4aa380ee62 | ||
|
1391fb941d | ||
|
c4d0c8ac35 | ||
|
b0dadddbb0 | ||
|
c1e94bd27f | ||
|
2405f6bd1f | ||
|
0b354f4fea | ||
|
15db5d52dd | ||
|
9c4de359fb | ||
|
e48ea379ef | ||
|
c90ba65374 | ||
|
4ac1583bcb | ||
|
deaa49652f | ||
|
e565c1380a | ||
|
65304feb56 | ||
|
a299ab663f | ||
|
9a9ee411da | ||
|
c6b3f9b299 | ||
|
f6215e8bfe | ||
|
3dfc34388c | ||
|
8cbc838790 | ||
|
443597da4b | ||
|
6a55cd5d8b |
2 changed files with 54 additions and 34 deletions
|
@ -1,22 +1,34 @@
|
||||||
pipeline:
|
steps:
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: "docker.io/woodpeckerci/plugin-docker-buildx"
|
||||||
registry: registry.nulo.in
|
settings:
|
||||||
repo: registry.nulo.in/sutty/containers-sdk-ruby
|
registry: "https://gitea.nulo.in"
|
||||||
tags:
|
username: "sutty"
|
||||||
- ${ALPINE_VERSION}
|
repo: "gitea.nulo.in/sutty/sdk-ruby"
|
||||||
- latest
|
tags:
|
||||||
build_args:
|
- "${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
|
||||||
- ALPINE_VERSION=${ALPINE_VERSION}
|
- "latest"
|
||||||
- BASE_IMAGE=registry.nulo.in/sutty/containers-sdk
|
build_args:
|
||||||
username: sutty
|
- "RUBY_VERSION=${RUBY_VERSION}"
|
||||||
secrets:
|
- "RUBY_PATCH=${RUBY_PATCH}"
|
||||||
- docker_password
|
- "ALPINE_VERSION=${ALPINE_VERSION}"
|
||||||
|
- "BASE_IMAGE=gitea.nulo.in/sutty/sdk"
|
||||||
|
password:
|
||||||
|
from_secret: "DOCKER_PASSWORD"
|
||||||
when:
|
when:
|
||||||
branch: antifascista
|
branch: "antifascista"
|
||||||
event: push
|
event: "push"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
ALPINE_VERSION:
|
include:
|
||||||
- 3.13.6
|
- ALPINE_VERSION: "3.20.3"
|
||||||
- 3.14.2
|
RUBY_VERSION: "3.3"
|
||||||
|
RUBY_PATCH: "3"
|
||||||
|
- ALPINE_VERSION: "3.19.4"
|
||||||
|
RUBY_VERSION: "3.2"
|
||||||
|
RUBY_PATCH: "4"
|
||||||
|
- ALPINE_VERSION: "3.18.9"
|
||||||
|
RUBY_VERSION: "3.2"
|
||||||
|
RUBY_PATCH: "4"
|
||||||
|
- ALPINE_VERSION: "3.17.10"
|
||||||
|
RUBY_VERSION: "3.1"
|
||||||
|
RUBY_PATCH: "5"
|
||||||
|
|
38
Dockerfile
38
Dockerfile
|
@ -1,20 +1,28 @@
|
||||||
ARG BASE_IMAGE=sutty/sdk-ruby
|
ARG ALPINE_VERSION=3.13.6
|
||||||
ARG ALPINE_VERSION=3.13.6
|
ARG BASE_IMAGE=gitea.nulo.in/sutty/containers-sdk
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
ARG EMAIL=monit@sutty.nl
|
||||||
MAINTAINER "f <f@sutty.nl>"
|
FROM alpine:${ALPINE_VERSION} AS build
|
||||||
|
ARG RUBY_VERSION=2.7
|
||||||
|
ARG RUBY_PATCH=5
|
||||||
|
ENV EMAIL ${EMAIL:-monit@sutty.nl}
|
||||||
|
|
||||||
RUN apk add --no-cache git nodejs nodejs-npm yarn tzdata libxslt-dev libxml2-dev
|
RUN apk add --no-cache ruby~${RUBY_VERSION}.${RUBY_PATCH} patch
|
||||||
RUN apk add --no-cache ruby-dev ruby-bundler ruby-json ruby-bigdecimal ruby-rake ruby-etc
|
|
||||||
RUN apk add --no-cache postgresql-dev sqlite-dev mariadb-dev
|
|
||||||
RUN apk add --no-cache linux-headers
|
|
||||||
|
|
||||||
RUN addgroup -g 82 -S www-data
|
# Patch rubygems to install x86_64-linux-musl gems
|
||||||
RUN adduser -s /bin/sh -G www-data -h /home/app -D app
|
|
||||||
RUN install -dm 2750 -o app -g www-data /home/app/sutty
|
|
||||||
|
|
||||||
# https://github.com/rubygems/rubygems/issues/2918
|
|
||||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
|
||||||
COPY ./rubygems-platform-musl.patch /tmp/
|
COPY ./rubygems-platform-musl.patch /tmp/
|
||||||
RUN patch -d /usr/lib/ruby/2.7.0 -Np 0 -i /tmp/rubygems-platform-musl.patch
|
RUN cd /usr/lib/ruby/${RUBY_VERSION}.0 && patch -Np 0 -i /tmp/rubygems-platform-musl.patch || true
|
||||||
|
|
||||||
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||||
|
ARG ALPINE_VERSION
|
||||||
|
LABEL org.opencontainers.image.authors="f@sutty.nl"
|
||||||
|
ARG RUBY_VERSION
|
||||||
|
ARG RUBY_PATCH
|
||||||
|
|
||||||
|
# Install ruby and extracted gems and copy patched rubygems
|
||||||
|
RUN apk add --no-cache tzdata ruby~${RUBY_VERSION}.${RUBY_PATCH} && rm /usr/lib/ruby/${RUBY_VERSION}.0/rubygems.rb
|
||||||
|
RUN apk add --no-cache ruby-json ruby-bigdecimal ruby-rake ruby-bundler ruby-irb ruby-io-console ruby-etc
|
||||||
|
COPY --from=build /usr/lib/ruby/${RUBY_VERSION}.0/rubygems.rb /usr/lib/ruby/${RUBY_VERSION}.0/
|
||||||
|
|
||||||
|
RUN apk add --no-cache ruby-dev
|
||||||
|
|
||||||
ENTRYPOINT /bin/sh
|
ENTRYPOINT /bin/sh
|
||||||
|
|
Loading…
Reference in a new issue