Skip to content

Commit c41b065

Browse files
authored
Merge pull request #51 from scalyr/dtin-5237
DTIN-5237: Updated base image with multistage build
2 parents 4ec47cc + d6d4559 commit c41b065

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
## 0.8.18 - June 13, 2024
2-
- Update fluentd docker image to `v1.17.0-1.0`
1+
## 0.9.0 - June 2nd, 2025
32

4-
## 0.8.17 - June 21, 2022
3+
- Bump rexml from 3.2.5 to 3.3.3 (via Dependabot)
4+
- Update fluentd Docker image to `v1.18.0-debian` with a multistage build
5+
6+
## 0.8.18 - June 13th, 2024
7+
8+
- Update fluentd Docker image to `v1.17.0-1.0`
9+
10+
## 0.8.17 - June 21st, 2022
511

612
- Update rake requirement from ~> 0.9 to ~> 13.0
713
- Update yajl-ruby from 1.4.1 to 1.4.3

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
fluent-plugin-scalyr (0.8.18)
4+
fluent-plugin-scalyr (0.9.0)
55
ffi (= 1.15.5)
66
fluentd (>= 0.14.0, < 2)
77
rbzip2 (= 0.3.0)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.18
1+
0.9.0

docker/Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM fluent/fluentd:v1.17.0-1.0
1+
FROM fluent/fluentd:v1.18.0-debian AS build
22

33
USER root
44

5+
RUN apt-get update \
6+
&& apt-get install -y --no-install-recommends build-essential ruby-dev zlib1g-dev
7+
58
COPY ./pkg/fluent-plugin-scalyr-*.gem /
69
RUN mv /fluent-plugin-scalyr-*.gem /fluent-plugin-scalyr.gem
10+
RUN gem install --install-dir /bundle fluent-plugin-scalyr.gem \
11+
&& (cd /bundle; tar czf /bundle.tar.gz .)
12+
13+
FROM fluent/fluentd:v1.18.0-debian
14+
15+
USER root
716

8-
RUN apk add --no-cache --update --virtual .build-deps \
9-
build-base ruby-dev \
10-
&& gem install fluent-plugin-scalyr.gem \
11-
&& gem sources --clear-all \
12-
&& apk del .build-deps \
13-
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
17+
COPY --from=build /bundle.tar.gz /
18+
RUN tar xzf /bundle.tar.gz -C /usr/local/bundle && rm /bundle.tar.gz
1419

1520
USER fluent

0 commit comments

Comments
 (0)