Skip to content

Commit f225f94

Browse files
author
Louis T. Getterman IV
committed
Slight modification for passing version
Version is now passed to pycompiler.bash as an argument so that this can be a re-usable template for subsequent creations/purposes.
1 parent 3d36db0 commit f225f94

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GGCOM - Docker - pyenv v201508040404
1+
# GGCOM - Docker - pyenv v201508041108
22
# Louis T. Getterman IV (@LTGIV)
33
# www.GotGetLLC.com | www.opensour.cc/ggcom/docker/pyenv
44
#
@@ -47,7 +47,7 @@ RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/
4747

4848
ADD pycompiler.bash $HOME/pycompiler.bash
4949
ADD version $HOME/version
50-
RUN bash $HOME/pycompiler.bash $HOME/version
50+
RUN bash $HOME/pycompiler.bash $(cat $HOME/version)
5151
RUN rm -rf $HOME/pycompiler.bash $HOME/version
5252

5353
RUN pyenv rehash

pycompiler.bash

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
#!/usr/bin/env bash
2+
: <<'!COMMENT'
23
3-
target=$(cat $1 | tr -d '[[:space:]]') \
4-
rexp='^TARGET\.[0-9][\.0-9]*$' \
4+
GGCOM - Docker - pyenv v201508041108
5+
Louis T. Getterman IV (@LTGIV)
6+
www.GotGetLLC.com | www.opensour.cc/ggcom/docker/pyenv
7+
8+
Example usage of compile+install, and subsequent test of desired version:
9+
$] pycompiler.bash VERSION
10+
$] python --version
11+
12+
!COMMENT
13+
14+
target=$(echo "$1" | tr -d '[[:space:]]')
15+
rexp='^TARGET\.[0-9][\.0-9]*$'
516
pylist=$( pyenv install --list )
617

718
echo "----------"

0 commit comments

Comments
 (0)