Skip to content

Commit

Permalink
Parameterise install_dependencies script so we can specify different …
Browse files Browse the repository at this point in the history
…packages per image
  • Loading branch information
tomb1n0 committed Sep 19, 2023
1 parent 5f2f30f commit 5af3d0d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion php-71/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-72/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-73/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-74/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-80/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-81/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat-traditional git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
2 changes: 1 addition & 1 deletion php-82/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY /resources/config/php/ /docker-config/
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat-traditional git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
Expand Down
10 changes: 1 addition & 9 deletions resources/scripts/php/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,7 @@ curl -sSLf \
chmod +x /usr/local/bin/install-php-extensions

# Install Sudo
apt-get update && apt-get install -y \
sudo \
vim \
nano \
netcat-traditional \
git \
iputils-ping \
dnsutils \
default-mysql-client
apt-get update && apt-get install -y "$@"

# Cleanup Apt
apt-get clean && rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 5af3d0d

Please sign in to comment.