Skip to content

Commit

Permalink
Update COMPOSER_HOME path in Dockerfiles and adjust directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekutianski committed Dec 28, 2024
1 parent 189cc0f commit 775e971
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Dockerfile-8.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM=xterm

ENV COMPOSER_HOME=/srv/strwise/composer
ENV COMPOSER_HOME=/usr/local/composer

# Install runtime dependencies
RUN set -eux && \
Expand Down Expand Up @@ -92,10 +92,10 @@ RUN set -eux && \
# Composer:
#####################################
# create composer HOME
mkdir -p /srv/strwise/composer && \
mkdir -p ${COMPOSER_HOME} && \
# Install composer and add its bin to the PATH.
curl -s http://getcomposer.org/installer | php && \
echo "export PATH=${PATH}:/srv/strwise/vendor/bin" >> ~/.bashrc && \
echo "export PATH=${PATH}:/usr/local/composer/vendor/bin" >> /etc/bash.bashrc && \
mv composer.phar /usr/local/bin/composer && \
printf "StreamWise Workspace version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile-8.2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM=xterm

ENV COMPOSER_HOME=/srv/strwise/composer
ENV COMPOSER_HOME=/usr/local/composer

# Install runtime dependencies
RUN set -eux && \
Expand Down Expand Up @@ -87,15 +87,15 @@ RUN set -eux \
php8.2-memcached \
php8.2-gd \
php8.2-dev
RUN set -eux \
RUN set -eux && \
#####################################
# Composer:
#####################################
# create composer HOME
&& mkdir -p /srv/strwise/composer && \
mkdir -p ${COMPOSER_HOME} && \
# Install composer and add its bin to the PATH.
curl -s http://getcomposer.org/installer | php && \
echo "export PATH=${PATH}:/srv/strwise/vendor/bin" >> ~/.bashrc && \
echo "export PATH=${PATH}:/usr/local/composer/vendor/bin" >> /etc/bash.bashrc && \
mv composer.phar /usr/local/bin/composer && \
printf "StreamWise Workspace version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-8.3
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM=xterm

ENV COMPOSER_HOME=/srv/strwise/composer
ENV COMPOSER_HOME=/usr/local/composer

# Install runtime dependencies
RUN set -eux && \
Expand Down Expand Up @@ -93,10 +93,10 @@ RUN set -eux && \
# Composer:
#####################################
# create composer HOME
mkdir -p /srv/strwise/composer && \
mkdir -p ${COMPOSER_HOME} && \
# Install composer and add its bin to the PATH.
curl -s http://getcomposer.org/installer | php && \
echo "export PATH=${PATH}:/srv/strwise/vendor/bin" >> ~/.bashrc && \
echo "export PATH=${PATH}:/usr/local/composer/vendor/bin" >> /etc/bash.bashrc && \
mv composer.phar /usr/local/bin/composer && \
printf "StreamWise Workspace version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-8.4
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM=xterm

ENV COMPOSER_HOME=/srv/strwise/composer
ENV COMPOSER_HOME=/usr/local/composer

# Install runtime dependencies
RUN set -eux && \
Expand Down Expand Up @@ -93,10 +93,10 @@ RUN set -eux && \
# Composer:
#####################################
# create composer HOME
mkdir -p /srv/strwise/composer && \
mkdir -p ${COMPOSER_HOME} && \
# Install composer and add its bin to the PATH.
curl -s http://getcomposer.org/installer | php && \
echo "export PATH=${PATH}:/srv/strwise/vendor/bin" >> ~/.bashrc && \
echo "export PATH=${PATH}:/usr/local/composer/vendor/bin" >> /etc/bash.bashrc && \
mv composer.phar /usr/local/bin/composer && \
printf "StreamWise Workspace version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
Expand Down

0 comments on commit 775e971

Please sign in to comment.