Skip to content

Commit

Permalink
fix: pyenv issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vikash-peak committed Nov 26, 2024
1 parent d5fbfb0 commit 6981af2
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
14 changes: 13 additions & 1 deletion workspace/python/ds-pack/2.1.1-base-python-3.10.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ RUN apt-get update \
unzip \
libpq-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
python3-openssl \
&& rm -rf /var/lib/apt/lists/*

# Install AWS CLI v2
Expand All @@ -76,7 +88,7 @@ RUN curl https://pyenv.run | bash \
&& echo 'export PATH="/usr/local/pyenv/bin:$PATH"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv init --path)"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> /etc/profile.d/pyenv.sh \
&& chmod -R 755 /usr/local/pyenv
&& chmod -R 777 /usr/local/pyenv

# Ensure pyenv is available to all users
ENV PYENV_ROOT=/usr/local/pyenv
Expand Down
14 changes: 13 additions & 1 deletion workspace/python/ds-pack/2.1.1-base-python-3.11.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ RUN apt-get update \
unzip \
libpq-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
python3-openssl \
&& rm -rf /var/lib/apt/lists/*

# Install AWS CLI v2
Expand All @@ -76,7 +88,7 @@ RUN curl https://pyenv.run | bash \
&& echo 'export PATH="/usr/local/pyenv/bin:$PATH"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv init --path)"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> /etc/profile.d/pyenv.sh \
&& chmod -R 755 /usr/local/pyenv
&& chmod -R 777 /usr/local/pyenv

# Ensure pyenv is available to all users
ENV PYENV_ROOT=/usr/local/pyenv
Expand Down
14 changes: 13 additions & 1 deletion workspace/python/ds-pack/2.1.1-base-python-3.8.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ RUN apt-get update \
unzip \
libpq-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
python3-openssl \
&& rm -rf /var/lib/apt/lists/*

# Install AWS CLI v2
Expand All @@ -76,7 +88,7 @@ RUN curl https://pyenv.run | bash \
&& echo 'export PATH="/usr/local/pyenv/bin:$PATH"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv init --path)"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> /etc/profile.d/pyenv.sh \
&& chmod -R 755 /usr/local/pyenv
&& chmod -R 777 /usr/local/pyenv

# Ensure pyenv is available to all users
ENV PYENV_ROOT=/usr/local/pyenv
Expand Down
14 changes: 13 additions & 1 deletion workspace/python/ds-pack/2.1.1-base-python-3.9.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ RUN apt-get update \
unzip \
libpq-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
python3-openssl \
&& rm -rf /var/lib/apt/lists/*

# Install AWS CLI v2
Expand All @@ -76,7 +88,7 @@ RUN curl https://pyenv.run | bash \
&& echo 'export PATH="/usr/local/pyenv/bin:$PATH"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv init --path)"' >> /etc/profile.d/pyenv.sh \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> /etc/profile.d/pyenv.sh \
&& chmod -R 755 /usr/local/pyenv
&& chmod -R 777 /usr/local/pyenv

# Ensure pyenv is available to all users
ENV PYENV_ROOT=/usr/local/pyenv
Expand Down

0 comments on commit 6981af2

Please sign in to comment.