File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # We will use Ubuntu for our image
2+ FROM ubuntu:latest
3+
4+ # Updating Ubuntu packages
5+
6+ ARG CLOJURE_TOOLS_VERSION=1.10.1.507
7+
8+ RUN apt-get -qq update \
9+ && apt install -y software-properties-common \
10+ && add-apt-repository -y ppa:deadsnakes/ppa
11+
12+ RUN apt-get -qq update && apt-get -qq -y install curl wget bzip2 openjdk-8-jdk-headless python3.9 libpython3.9 python3-pip python3-distutils\
13+ && curl -o install-clojure https://download.clojure.org/install/linux-install-${CLOJURE_TOOLS_VERSION}.sh \
14+ && chmod +x install-clojure \
15+ && ./install-clojure && rm install-clojure \
16+ && wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein \
17+ && chmod a+x lein \
18+ && mv lein /usr/bin \
19+ && apt-get -qq -y autoremove \
20+ && apt-get autoclean \
21+ && rm -rf /var/lib/apt/lists/* /var/log/dpkg.log
22+
23+
24+ ARG USERID
25+ ARG GROUPID
26+ ARG USERNAME
27+
28+ RUN groupadd -g $GROUPID $USERNAME
29+ RUN useradd -u $USERID -g $GROUPID $USERNAME
30+ RUN mkdir /home/$USERNAME && chown $USERNAME:$USERNAME /home/$USERNAME
31+ USER $USERNAME
32+
33+ # Install leiningen during build process
34+ RUN lein -v
35+ # RUN python3.9 -mpip install numpy
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ pushd dockerfiles
6+ docker build -t docker-py39 -f Py39Dockerfile --build-arg USERID=$( id -u) --build-arg GROUPID=$( id -u) --build-arg USERNAME=$USER .
7+ popd
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ scripts/build-py39-docker
4+
5+ docker run --rm -it -u $( id -u) :$( id -g) \
6+ -v /$HOME /.m2:/home/$USER /.m2 \
7+ -v $( pwd) /:/libpython-clj \
8+ --net=host -w /libpython-clj \
9+ docker-py39 scripts/py38-repl
You can’t perform that action at this time.
0 commit comments