Skip to content

Instantly share code, notes, and snippets.

@CarloCattano
Last active August 5, 2024 10:11
Show Gist options
  • Save CarloCattano/73482a9e846e27165e85dcf32cda91ad to your computer and use it in GitHub Desktop.
Save CarloCattano/73482a9e846e27165e85dcf32cda91ad to your computer and use it in GitHub Desktop.
42 pool Ubuntu docker development enviroment image
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV NORM_VER 3.3.53
WORKDIR /home/root
VOLUME /home/root
RUN apt-get update -y && \
apt-get install -y lsb-release valgrind clang wget nano python3 \
python3-pip build-essential cmake git curl python3-venv && \
pip install norminette=="$NORM_VER"
#&> /dev/null && printf "\n\e[32m-----\ninstalled Norminette $NORM_VER\n\n\e[0m"
RUN wget https://raw.github.com/xicodomingues/francinette/master/bin/install.sh && chmod +x install.sh && \
./install.sh && printf "\n\e[32m------\ninstalled Francinette\n\n\e[0m"
RUN printf "\n\e[32m------\n READY TO GO! \n\n\e[0m" && \
printf "\n\e[32m------\n docker run -it -v \$(pwd):/home/root ubuntu\n\n\e[0m" && \
printf " \e[32mTo run a terminal inside the container , enjoy\n\n\e[0m"
CMD ["bash"]
# Build :
# docker build -t ubuntu .
# Run :
# docker run -it -v $(pwd):/home/root ubuntu
@CarloCattano
Copy link
Author

CarloCattano commented Jan 20, 2023

wget https://gist.githubusercontent.com/CarloCattano/73482a9e846e27165e85dcf32cda91ad/raw/002fb466a341ac39d3475160c49fe839030834b1/Dockerfile

Save this file in a folder where you want to work, it will mount that folder so you can copy your project there to run francinette on them
to build:
docker build -t ubuntu .
to run it
docker run -it -v $(pwd):/home/root ubuntu

Includes:

  • francinette
  • devtools (valgrind , norminette, cc , etc)

@richardbarr1991
Copy link

Thanks for sharing this Carlo!!

@Canteen43
Copy link

Thank you so much for providing this!
On my PC it only works if I run:
docker run -it -v ${PWD}:/home/root ubuntu
instead of your line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment