Skip to content

Commit

Permalink
Added util
Browse files Browse the repository at this point in the history
  • Loading branch information
kthakore committed May 22, 2021
1 parent c557b82 commit 4807eca
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions util/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM rust:latest as builder

WORKDIR /app

RUN apt-get update -y

RUN apt-get install unzip

RUN curl -L https://github.com/hotg-ai/rune/releases/download/nightly/rune.x86_64-unknown-linux-gnu.zip \
-o rune.x86_64-unknown-linux-gnu.zip


RUN ls

RUN unzip rune.x86_64-unknown-linux-gnu.zip

RUN chmod a+x rune

FROM rust:latest

WORKDIR /app

RUN rustup toolchain install nightly-2021-05-09

RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2021-05-09

COPY --from=builder /app/rune /usr/local/bin


#CMD ["sh"]
2 changes: 2 additions & 0 deletions util/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build . -t tinyverseml/rune-cli
docker push tinyverseml/rune-cli:latest
3 changes: 3 additions & 0 deletions util/rune.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! sh

docker run -v `pwd`:`pwd` -w `pwd` -i -t tinyverseml/rune-cli /usr/local/bin/rune $@

0 comments on commit 4807eca

Please sign in to comment.