File tree Expand file tree Collapse file tree 3 files changed +45
-5
lines changed Expand file tree Collapse file tree 3 files changed +45
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN curl --output clever-tools_linux.tar.gz https://clever-tools.clever-cloud.co
12
12
# Only grep the clever-tools binary and his libraries for the release stage
13
13
# We use ldd to find the shared object dependencies.
14
14
RUN \
15
- mkdir -p /tmp/fakeroot/lib && \
15
+ mkdir -p /tmp/fakeroot/lib && \
16
16
cp $(ldd /usr/local/bin/clever | grep -o '/.\+\. so[^ ]*' | sort | uniq) /tmp/fakeroot/lib && \
17
17
for lib in /tmp/fakeroot/lib/*; do strip --strip-all $lib; done && \
18
18
mkdir -p /tmp/fakeroot/bin/ && \
@@ -28,9 +28,11 @@ LABEL version="<%= version %>" \
28
28
VOLUME ["/actions" ]
29
29
WORKDIR /actions
30
30
31
- COPY --from=build /tmp/fakeroot/ /
31
+ RUN mkdir -p /etc/ssl/certs
32
+ COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
32
33
33
- # # The loader search ld-linux-x86-64.so.2 in /lib64 but the folder does not exist
34
- RUN ln -s lib lib64
34
+ COPY --from=build /tmp/fakeroot/ /
35
+ COPY --from=ghcr.io/tarampampam/curl:8.6.0 /bin/curl /usr/bin/curl
36
+ COPY --from=ghcr.io/jqlang/jq /jq /usr/bin/jq
35
37
36
38
ENTRYPOINT ["clever" ]
Original file line number Diff line number Diff line change 1
1
# Clever Tools Docker Image
2
2
3
- This is a lightweight Docker image intended to be used mostly in CI environment.
3
+ This is a lightweight Docker image intended to be used mostly in CI environment.
4
4
5
5
## How to use
6
6
Original file line number Diff line number Diff line change
1
+ FROM debian AS build
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ libtool \
5
+ curl
6
+
7
+ RUN curl --output clever-tools_linux.tar.gz https://clever-tools.clever-cloud.com/releases/3.8.1/clever-tools-3.8.1_linux.tar.gz \
8
+ && mkdir clever-tools_linux \
9
+ && tar xvzf clever-tools_linux.tar.gz -C clever-tools_linux --strip-components=1 \
10
+ && cp clever-tools_linux/clever /usr/local/bin
11
+
12
+ # Only grep the clever-tools binary and his libraries for the release stage
13
+ # We use ldd to find the shared object dependencies.
14
+ RUN \
15
+ mkdir -p /tmp/fakeroot/lib && \
16
+ cp $(ldd /usr/local/bin/clever | grep -o '/.\+\. so[^ ]*' | sort | uniq) /tmp/fakeroot/lib && \
17
+ for lib in /tmp/fakeroot/lib/*; do strip --strip-all $lib; done && \
18
+ mkdir -p /tmp/fakeroot/bin/ && \
19
+ cp /usr/local/bin/clever /tmp/fakeroot/bin/
20
+
21
+ FROM busybox:glibc AS release
22
+
23
+ LABEL version="3.8.1" \
24
+ maintainer="<%= maintainer %>" \
25
+ description="<%= description %>" \
26
+ license="<%= license %>"
27
+
28
+ VOLUME ["/actions" ]
29
+ WORKDIR /actions
30
+
31
+ RUN mkdir -p /etc/ssl/certs
32
+ COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
33
+
34
+ COPY --from=build /tmp/fakeroot/ /
35
+ COPY --from=ghcr.io/tarampampam/curl:8.6.0 /bin/curl /usr/bin/curl
36
+ COPY --from=ghcr.io/jqlang/jq /jq /usr/bin/jq
37
+
38
+ ENTRYPOINT ["sh" ]
You can’t perform that action at this time.
0 commit comments