GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cryptpilot/Dockerfile.verity at master · openanolis/cryptpilot

Expand file tree

/

Dockerfile.verity

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
63 lines (48 loc) · 2.66 KB
/

Dockerfile.verity

Copy path

File metadata and controls

63 lines (48 loc) · 2.66 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Builder stage - build RPM packages
FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest AS builder
# Replace mirrors for faster yum install
RUN sed -i -E 's|https?://mirrors.cloud.aliyuncs.com/|https://mirrors.aliyun.com/|g' /etc/yum.repos.d/*.repo
# Increase yum download speed
RUN sed -i 's/^max_parallel_downloads=.*/max_parallel_downloads=20/' /etc/yum.conf ; if ! grep -q '^max_parallel_downloads=' /etc/yum.conf; then sed -i '/^\[main\]$/a max_parallel_downloads=20' /etc/yum.conf; fi ;
# Install Rust toolchain
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --no-modify-path --default-toolchain none
WORKDIR /code/
COPY rust-toolchain.toml .
# Install toolchain and cache it
RUN . "$HOME/.cargo/env" && rustup show
# Install build dependencies
RUN yum install -y git protobuf-devel gcc cmake clang clang-libs \
cryptsetup-devel perl-IPC-Cmd device-mapper-devel fuse3-devel \
rpmdevtools yum-utils && \
yum clean all
COPY . .
# Setup RPM build tree
RUN rpmdev-setuptree
# Build RPM packages using the same process as rpm-build target
RUN . "$HOME/.cargo/env" && \
# Create source tarball
make create-tarball && \
# Copy tarball to RPM build sources
cp /tmp/cryptpilot-$(grep '^version' Cargo.toml | awk -F' = ' '{print $2}' | tr -d '"')-vendored-source.tar.gz ~/rpmbuild/SOURCES/ && \
# Install build dependencies from spec file (like yum-builddep).
# Only the verity subpackage is packaged by this image, so disable the
# fde/crypt builds in the same spec.
# (bcond disables need the underscore-prefixed _without_X macros.)
yum-builddep -y --skip-unavailable ./cryptpilot.spec \
--define '_without_fde 1' --define '_without_crypt 1' && \
# Build RPM packages
rpmbuild -ba ./cryptpilot.spec --define 'with_rustup 1' --without fde --without crypt
# Release stage for cryptpilot-verity
FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest AS release-verity
# Replace mirrors for faster yum install
RUN sed -i -E 's|https?://mirrors.cloud.aliyuncs.com/|https://mirrors.aliyun.com/|g' /etc/yum.repos.d/*.repo
# Increase yum download speed
RUN sed -i 's/^max_parallel_downloads=.*/max_parallel_downloads=20/' /etc/yum.conf ; if ! grep -q '^max_parallel_downloads=' /etc/yum.conf; then sed -i '/^\[main\]$/a max_parallel_downloads=20' /etc/yum.conf; fi ;
# Copy RPM from builder
COPY --from=builder /root/rpmbuild/RPMS/x86_64/cryptpilot-verity-*.rpm /tmp/
# Install Verity package and its dependencies
RUN yum install -y /tmp/cryptpilot-verity-*.rpm && \
yum clean all && \
rm -rf /var/cache/yum /tmp/*.rpm
CMD ["cryptpilot-verity"]
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.