Skip to content

Commit

Permalink
add mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
josiahls committed Jan 21, 2024
1 parent 7ab9ebc commit 81c1091
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: "3.8"
services:
fastrl_build:
build:
Expand Down
13 changes: 9 additions & 4 deletions fastrl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,16 @@ ENV PATH="/home/$CONTAINER_USER/.local/bin:${PATH}"
RUN pip install setuptools==60.7.0
COPY --chown=$CONTAINER_USER:$CONTAINER_GROUP . fastrl

RUN sudo apt-get -y install cmake
RUN sudo apt-get -y install cmake python3.8-venv

# RUN curl https://get.modular.com | sh - && \
# modular auth mut_9b52dfea7b05427385fdeddc85dd3a64 && \
# modular install mojo
RUN curl https://get.modular.com | sh - && \
modular auth mut_9b52dfea7b05427385fdeddc85dd3a64 && \
modular install mojo

RUN BASHRC=$( [ -f "$HOME/.bash_profile" ] && echo "$HOME/.bash_profile" || echo "$HOME/.bashrc" ) && \
echo 'export MODULAR_HOME="/home/fastrl_user/.modular"' >> "$BASHRC" && \
echo 'export PATH="/home/fastrl_user/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> "$BASHRC" && \
source "$BASHRC"

# RUN /bin/bash -c "if [[ $BUILD == 'dev' ]] ; then echo \"Development Build\" && cd fastrl/data && mv pyproject.toml pyproject.toml_tmp && pip install -e . --no-dependencies && mv pyproject.toml_tmp pyproject.toml && cd ../; fi"

Expand Down

0 comments on commit 81c1091

Please sign in to comment.