-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #98 - first attempt at making things really work for python 3.8
- Loading branch information
Showing
8 changed files
with
119 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# We will use Ubuntu for our image | ||
FROM ubuntu:latest | ||
|
||
# Updating Ubuntu packages | ||
|
||
ARG CLOJURE_TOOLS_VERSION=1.10.1.507 | ||
|
||
|
||
RUN apt-get -qq update && apt-get -qq -y install curl wget bzip2 openjdk-8-jdk-headless python3.8 libpython3.8 python3-pip \ | ||
&& curl -o install-clojure https://download.clojure.org/install/linux-install-${CLOJURE_TOOLS_VERSION}.sh \ | ||
&& chmod +x install-clojure \ | ||
&& ./install-clojure && rm install-clojure \ | ||
&& wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein \ | ||
&& chmod a+x lein \ | ||
&& mv lein /usr/bin \ | ||
&& apt-get -qq -y autoremove \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log | ||
|
||
|
||
ARG USERID | ||
ARG GROUPID | ||
ARG USERNAME | ||
|
||
RUN groupadd -g $GROUPID $USERNAME | ||
RUN useradd -u $USERID -g $GROUPID $USERNAME | ||
RUN mkdir /home/$USERNAME && chown $USERNAME:$USERNAME /home/$USERNAME | ||
USER $USERNAME | ||
|
||
# Install leiningen during build process | ||
RUN lein -v | ||
RUN python3.8 -mpip install numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
pushd dockerfiles | ||
docker build -t docker-py38 -f Py38Dockerfile --build-arg USERID=$(id -u) --build-arg GROUPID=$(id -u) --build-arg USERNAME=$USER . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\]\ | ||
-- update-in :plugins conj \[cider/cider-nrepl\ \"0.22.4\"\]\ | ||
-- repl :headless :host localhost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
scripts/build-py38-docker | ||
|
||
docker run --rm -it -u $(id -u):$(id -g) \ | ||
-v /$HOME/.m2:/home/$USER/.m2 \ | ||
-v $(pwd)/:/libpython-clj \ | ||
--net=host -w /libpython-clj \ | ||
docker-py38 scripts/py38-repl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters