Skip to content

Commit

Permalink
infra(clojure): update build dependencies (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Aug 29, 2023
1 parent 2fd4b77 commit f678f71
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 34 deletions.
39 changes: 39 additions & 0 deletions openllm-contrib/clojure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,45 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"

ENV DEBIAN_FRONTEND=noninteractive

# vendorred from https://github.com/rust-lang/docker-rust/blob/d2002ab9f7a29ce1dcbbac7d77fbd598fd971d1a/1.72.0/buster/slim/Dockerfile
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.72.0

RUN 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/*;

RUN rustup target add aarch64-apple-darwin

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential openjdk-17-jdk curl git npm bash python3 python3-pip gcc python3-dev \
&& rm -rf /var/lib/apt/lists/*
Expand Down
3 changes: 3 additions & 0 deletions openllm-contrib/clojure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
"@emotion/utils": "^1.2.1",
"@emotion/weak-memoize": "^0.3.1",
"@floating-ui/core": "^1.4.1",
"@floating-ui/dom": "^1.5.1",
"@floating-ui/react-dom": "^2.0.2",
"@mui/base": "5.0.0-beta.12",
"@mui/icons-material": "5.14.6",
"@mui/material": "5.14.6",
Expand Down
194 changes: 160 additions & 34 deletions openllm-contrib/clojure/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f678f71

Please sign in to comment.