-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
49 lines (40 loc) · 2.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM golang:alpine
RUN apk add gcc git glib-dev make musl-dev
RUN git clone https://github.com/foundriesio/ostreeuploader.git /ostreeuploader && \
cd /ostreeuploader && git checkout b18f2c3728c4cfc219f4c872ae58e444c212b254
RUN cd /ostreeuploader && make
RUN go install github.com/GoogleCloudPlatform/[email protected]+incompatible
FROM golang:1.22.2-bookworm AS composectl
WORKDIR /build
RUN git clone https://github.com/foundriesio/composeapp.git && cd composeapp \
&& git checkout v95 && make
FROM docker:20.10.12-dind
WORKDIR /root/
ENV GARAGE_SIGN_ARCH="cli-0.7.2-48-gf606131.tgz"
ENV GARAGE_SIGN_ARCH_HASH="f20c9f3e08fff277a78786025105298322c54874ca66a753e7ad0b2ffb239502"
RUN wget https://storage.googleapis.com/public-shared-artifacts-fio/mirrors/ota-tuf-cli-releases/${GARAGE_SIGN_ARCH} \
&& echo "${GARAGE_SIGN_ARCH_HASH} ${GARAGE_SIGN_ARCH}" | sha256sum -c \
&& tar -xzf ${GARAGE_SIGN_ARCH} --strip-components=1 -C /usr
RUN apk add --no-cache bash glib libarchive libcurl libsodium nss openjdk8-jre-base python3 py3-pip boost-program_options boost-log boost-filesystem boost-log_setup parted sgdisk git lsblk skopeo ostree docker-compose \
&& pip3 install expandvars==0.6.5 awscli==1.20.64 canonicaljson==2.0.0
RUN wget -O /tmp/docker-app.tgz https://github.com/docker/app/releases/download/v0.9.0-beta1/docker-app-linux.tar.gz \
&& tar xf "/tmp/docker-app.tgz" -C /tmp/ \
&& mkdir -p /usr/lib/docker/cli-plugins \
&& mv "/tmp/docker-app-plugin-linux" /usr/lib/docker/cli-plugins/docker-app \
&& rm /tmp/docker*
ENV DOCKER_CLI_EXPERIMENTAL=enabled
RUN apk add --no-cache py3-setuptools py3-six \
&& wget https://github.com/intel/bmap-tools/archive/refs/tags/v3.6.tar.gz \
&& tar -xzf v3.6.tar.gz \
&& cd bmap-tools-3.6 && python3 setup.py install && cd - \
&& rm -rf v3.6.tar.gz bmap-tools-3.6
COPY --from=0 /ostreeuploader/bin/fiopush /usr/bin/
COPY --from=0 /ostreeuploader/bin/fiocheck /usr/bin/
COPY --from=0 /ostreeuploader/bin/fiosync /usr/bin/
COPY --from=0 /go/bin/docker-credential-gcr /usr/bin/
COPY --from=composectl /build/composeapp/bin/composectl /usr/bin/
COPY compose-publish.sh /usr/bin/compose-publish
RUN wget https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64 -O /usr/lib/docker/cli-plugins/docker-compose \
&& chmod +x /usr/lib/docker/cli-plugins/docker-compose
CMD bash
ENTRYPOINT []