-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #877 from uselagoon/testing/php83
Add PHP8.3 images
- Loading branch information
Showing
9 changed files
with
330 additions
and
4 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
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,11 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-lagoon}/php-8.3-cli | ||
|
||
LABEL org.opencontainers.image.authors="The Lagoon Authors" maintainer="The Lagoon Authors" | ||
LABEL org.opencontainers.image.source="https://github.com/uselagoon/lagoon-images" repository="https://github.com/uselagoon/lagoon-images" | ||
|
||
ENV LAGOON=cli-drupal | ||
|
||
COPY drushrc.php drush.yml /home/.drush/ | ||
|
||
RUN fix-permissions /home/.drush |
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,65 @@ | ||
ARG IMAGE_REPO | ||
FROM ${IMAGE_REPO:-lagoon}/php-8.3-fpm | ||
|
||
LABEL org.opencontainers.image.authors="The Lagoon Authors" maintainer="The Lagoon Authors" | ||
LABEL org.opencontainers.image.source="https://github.com/uselagoon/lagoon-images" repository="https://github.com/uselagoon/lagoon-images" | ||
|
||
ENV LAGOON=cli | ||
|
||
RUN apk add --no-cache git \ | ||
bash \ | ||
coreutils \ | ||
findutils \ | ||
gzip \ | ||
mariadb-client \ | ||
mariadb-connector-c \ | ||
mongodb-tools \ | ||
nodejs-current=~20 \ | ||
npm \ | ||
openssh-client \ | ||
openssh-sftp-server \ | ||
patch \ | ||
postgresql-client \ | ||
procps \ | ||
rsync \ | ||
unzip \ | ||
yarn \ | ||
&& ln -s /usr/lib/ssh/sftp-server /usr/local/bin/sftp-server \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
RUN curl -L -o /usr/local/bin/composer https://github.com/composer/composer/releases/download/2.6.5/composer.phar \ | ||
&& chmod +x /usr/local/bin/composer \ | ||
&& mkdir -p /home/.ssh \ | ||
&& fix-permissions /home/ | ||
|
||
# Adding Composer vendor bin directories to $PATH. | ||
ENV PATH="/app/vendor/bin:/home/.composer/vendor/bin:$PATH" | ||
# We not only use "export $PATH" as this could be overwritten again | ||
# like it happens in /etc/profile of alpine Images. | ||
|
||
COPY entrypoints /lagoon/entrypoints/ | ||
|
||
# Remove warning about running as root in composer | ||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
# Making sure the path is not only added during entrypoint, but also when creating a new shell | ||
RUN echo "source /lagoon/entrypoints/90-composer-path.sh" >> /home/.bashrc | ||
# Make sure shells are not running forever | ||
RUN echo "source /lagoon/entrypoints/80-shell-timeout.sh" >> /home/.bashrc | ||
# Make sure xdebug is automatically enabled also for cli scripts | ||
RUN echo "source /lagoon/entrypoints/61-php-xdebug-cli-env.sh" >> /home/.bashrc | ||
# helper functions | ||
RUN echo "source /lagoon/entrypoints/55-cli-helpers.sh" >> /home/.bashrc | ||
|
||
# Copy mariadb-client configuration. | ||
COPY mariadb-client.cnf /etc/my.cnf.d/ | ||
RUN fix-permissions /etc/my.cnf.d/ | ||
|
||
# SSH Key and Agent Setup | ||
COPY ssh_config /etc/ssh/ssh_config | ||
COPY id_ed25519_lagoon_cli.key /home/.ssh/lagoon_cli.key | ||
RUN chmod 400 /home/.ssh/lagoon_cli.key | ||
ENV SSH_AUTH_SOCK=/tmp/ssh-agent | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.sh"] | ||
CMD ["/bin/docker-sleep"] |
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
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
Oops, something went wrong.