ayb (nightly)
Installation
docker pull git.sofiaritz.com/sofia/ayb:nightly
sha256:cd93d68ad5f23e6f55ab522f601dcc0f7994eb45ca9612d006f7923603704bf2
Image Layers
ADD file:08cfc7bf77cc2291c96890f44a435216cb1168c45cef77f7801430982c43ca58 in / |
CMD ["bash"] |
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.75.0 |
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev wget ; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db' ;; armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a' ;; arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800' ;; i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac; url="https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init"; wget "$url"; echo "${rustupSha256} *rustup-init" | sha256sum -c -; chmod +x rustup-init; ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; rm rustup-init; chmod -R a+w $RUSTUP_HOME $CARGO_HOME; rustup --version; cargo --version; rustc --version; apt-get remove -y --auto-remove wget ; rm -rf /var/lib/apt/lists/*; # buildkit |
WORKDIR / |
ENV GIT_REPO=https://github.com/marcua/ayb |
ENV CHECKOUT=main |
RUN /bin/sh -c apt update # buildkit |
RUN /bin/sh -c apt install -y build-essential libssl-dev openssl autoconf bison flex gcc g++ git libprotobuf-dev libnl-route-3-dev libtool make pkg-config protobuf-compiler # buildkit |
RUN /bin/sh -c git clone $GIT_REPO # buildkit |
RUN /bin/sh -c git clone https://github.com/google/nsjail # buildkit |
RUN /bin/sh -c cd ./nsjail && make && mv nsjail ../ayb # buildkit |
WORKDIR /ayb |
COPY . . # buildkit |
RUN /bin/sh -c git fetch --tags # buildkit |
RUN /bin/sh -c git checkout -f $CHECKOUT # buildkit |
RUN /bin/sh -c cargo build --release # buildkit |
RUN /bin/sh -c cargo build --release # buildkit |
EXPOSE map[5433/tcp:{}] |
CMD ["./target/release/ayb" "server"] |
Details
Versions (2)
View all