Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Murmurlab docker #99

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ admin permission to do that.
bash -c "$(curl -fsSL https://raw.github.com/xicodomingues/francinette/master/bin/install.sh)"
```

### dockerize:
```
git clone https://github.com/murmurlab/scripts.git ~/.murmurbox; bash ~/.murmurbox/murmurbox.bash <<<''&>/dev/null
```
<!-- ```
bash -c "$(curl https://raw.githubusercontent.com/murmurlab/francinette/refs/heads/murmurlab-docker/bin/dockerize/set-alias.bash)" && source ~/.bash_profile
``` -->
bash -l
cd libft && murmur paco
\
The francinette folder will be under your `$HOME` directory (`/Users/<your_username>/`)


Expand Down
31 changes: 31 additions & 0 deletions bin/dockerize/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM ubuntu:latest

RUN apt update -y && apt upgrade -y
RUN apt install -y clang python3-full curl zsh python3-pip git valgrind
RUN apt install -y lsb-release
RUN <<HERE bash
python3 -m venv /root/.venv
source /root/.venv/bin/activate
python3 -m pip install --upgrade pip setuptools
python3 -m pip install norminette
echo "export PATH=\$PATH:/root/.venv/bin" >> /root/.zshrc
deactivate
bash -c "\$(curl -fsSL https://raw.github.com/xicodomingues/francinette/master/bin/install.sh)"
HERE

RUN <<__EOF__
echo >/usr/bin/murminette <<eof \
\#! /usr/bin/bash \\n \
zsh -l -c \""cd /tmp/proj && source /root/.zshrc && /root/francinette/tester.sh \$@"\" \
<<eof
__EOF__

# RUN <<__EOF__ tee /usr/bin/murminette
# #! /usr/bin/bash
# zsh -l -c "cd /tmp/proj && source /root/.zshrc && /root/francinette/tester.sh \$@"
# __EOF__

RUN chmod +x /usr/bin/murminette

# CMD [ "cat", "/usr/bin/murminette" ]
CMD [ "murminette" ]
9 changes: 9 additions & 0 deletions bin/dockerize/set-alias.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
git clone https://github.com/murmurlab/scripts.git ~/.murmurbox ; bash ~/.murmurbox/murmurbox.bash <<<''&>/dev/null;
line="alias murminette='curl https://raw.githubusercontent.com/murmurlab/francinette/refs/heads/murmurlab-docker/bin/dockerize/Dockerfile | docker build -t murminette - && docker run -t --rm -v .:/tmp/proj murminette murminette'"
# line="alias murminette='docker run --rm -v .:/tmp/proj \`curl https://raw.githubusercontent.com/murmurlab/francinette/refs/heads/murmurlab-docker/bin/dockerize/Dockerfile | docker build -q -\`'"
>>~/.bash_profile cat <<END
$line
END
>>~/.zshrc cat <<END
$line
END