Skip to content
Snippets Groups Projects
Select Git revision
  • 44b0bfa1a932f2080df83b7b36655e8ea5a7c746
  • master default protected
  • issue_4
  • issue_780
  • gitlab_migration_1
  • dev
  • rml8
  • v1.3.11
  • v1.3.10
  • v1.3.9
  • v1.3.8
  • v1.3.7
  • v1.3.6
  • v1.3.5
  • v1.3.4
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.10
  • v1.2.9
  • v1.2.8
  • v1.2.7
  • v1.2.6
  • v1.2.5
  • v1.2.4
  • v1.2.3
27 results

config.js

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.
    Dockerfile.ci 1.39 KiB
    # Stage 1: Build environment with all dependencies
    FROM rust:slim-bookworm as builder
    
    # Install necessary dependencies
    RUN apt-get update && apt-get install -y \
        clang \
        llvm \
        make \
        file \
        git \
        curl \
        cmake \
        python3 \
        python3-dev \
        python3-pip
    
    # Clone osxcross repository and set up
    RUN git clone https://github.com/tpoechtrager/osxcross.git /opt/osxcross && \
        cd /opt/osxcross && \
        ./tools/get_dependencies.sh && \
        cd /opt/osxcross/tarballs && \
        curl -LO https://github.com/joseluisq/macosx-sdks/releases/download/10.12/MacOSX10.12.sdk.tar.xz && \
        cd /opt/osxcross && \
        UNATTENDED=yes ./build.sh
    
    # Stage 2: Create the final image with only the necessary files
    FROM rust:slim-bookworm
    
    # Install cargo-bundle
    RUN cargo install cargo-bundle
    
    RUN apt-get update && apt-get install -y --no-install-recommends clang zip; \
        apt-get clean; \
        rm -rf /var/lib/apt/lists/*;
    
    # Copy cargo plugins from the builder stage
    COPY --from=builder /opt/osxcross/target /opt/osxcross/target
    
    # Set environment variables for osxcross and Rust
    ENV PATH="/opt/osxcross/target/bin:/usr/local/cargo/bin:$PATH"
    ENV CC="o64-clang"
    ENV CXX="o64-clang++"
    
    # Add rust target for macOS
    RUN rustup target add x86_64-apple-darwin
    
    # Copy scripts
    COPY scripts/install_gcli.scpt /opt/install_gcli.scpt
    COPY scripts/Info.plist /opt/Info.plist
    
    # Define the entrypoint
    CMD ["bash"]