Skip to content

Commit 0340c7e

Browse files
authored
Merge pull request #228 from bedroge/unionfs
Add unionfs-fuse to container used for bootstrapping
2 parents bd769ec + 03d913b commit 0340c7e

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6363
# format to the repository Actions tab.
6464
- name: "Upload artifact"
65-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
65+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6666
with:
6767
name: SARIF file
6868
path: results.sarif

Dockerfile.bootstrap-prefix-debian-11

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# stick to awscli v1.x, 2.x is not available through PyPI (see https://github.com/aws/aws-cli/issues/4947)
22
ARG awscliversion=1.32.22
3+
ARG unionfsfuseversion=3.7
34

45
FROM debian:11-slim
56
ARG awscliversion
7+
ARG unionfsfuseversion
68

79
COPY bootstrap-prefix.sh /usr/local/bin/bootstrap-prefix.sh
810

@@ -24,6 +26,20 @@ RUN python3 -m venv --system-site-packages /opt/awscli && \
2426
pip3 install awscli==${awscliversion} && \
2527
ln -s /opt/awscli/bin/aws /usr/local/bin/ && \
2628
deactivate
29+
# unionfs-fuse
30+
RUN apt-get install -y cmake pkg-config libfuse3-dev \
31+
&& curl -OL https://github.com/rpodgorny/unionfs-fuse/archive/refs/tags/v${unionfsfuseversion}.tar.gz \
32+
&& tar xfvz v${unionfsfuseversion}.tar.gz \
33+
&& cd unionfs-fuse-${unionfsfuseversion} \
34+
&& mkdir build \
35+
&& cd build \
36+
&& cmake .. \
37+
&& make install \
38+
&& command -v unionfs \
39+
&& unionfs --version \
40+
&& unionfs --help \
41+
&& apt-get remove -y cmake pkg-config libfuse3-dev
42+
2743

2844
ENV LC_ALL=C.UTF-8
2945
ENV PATH=/usr/local/bin:$PATH

Dockerfile.bootstrap-prefix-debian-13

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# stick to awscli v1.x, 2.x is not available through PyPI (see https://github.com/aws/aws-cli/issues/4947)
22
ARG awscliversion=1.32.22
3+
ARG unionfsfuseversion=3.6
34

45
FROM debian:trixie-20250520-slim
56
ARG awscliversion
7+
ARG unionfsfuseversion
68

79
COPY bootstrap-prefix.sh /usr/local/bin/bootstrap-prefix.sh
810

@@ -24,6 +26,19 @@ RUN python3 -m venv --system-site-packages /opt/awscli && \
2426
pip3 install awscli==${awscliversion} && \
2527
ln -s /opt/awscli/bin/aws /usr/local/bin/ && \
2628
deactivate
29+
# unionfs-fuse
30+
RUN apt-get install -y cmake pkg-config libfuse3-dev \
31+
&& curl -OL https://github.com/rpodgorny/unionfs-fuse/archive/refs/tags/v${unionfsfuseversion}.tar.gz \
32+
&& tar xfvz v${unionfsfuseversion}.tar.gz \
33+
&& cd unionfs-fuse-${unionfsfuseversion} \
34+
&& mkdir build \
35+
&& cd build \
36+
&& cmake .. \
37+
&& make install \
38+
&& command -v unionfs \
39+
&& unionfs --version \
40+
&& unionfs --help \
41+
&& apt-get remove -y cmake pkg-config libfuse3-dev
2742

2843
ENV LC_ALL=C.UTF-8
2944
ENV PATH=/usr/local/bin:$PATH

0 commit comments

Comments
 (0)