-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates git-sync installation in init container
- Loading branch information
Showing
3 changed files
with
14 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
# Use a base image that has necessary tools (e.g., wget, rsync) | ||
FROM alpine:latest | ||
|
||
# Install necessary packages | ||
RUN apk add --no-cache wget unzip rsync | ||
RUN apk add --no-cache wget unzip rsync git \ | ||
php php-fpm php-cli php-curl php-mbstring php-openssl php-dom php-xml php-json php-phar php-zip | ||
|
||
# Define Grav theme/skeleton URL | ||
ARG GRAV_SKELETON_URL=https://github.com/getgrav/grav-skeleton-gateway-site/releases/download/1.0.1/grav-skeleton-gateway-site+admin-1.0.1.zip | ||
|
||
# Download and unzip the theme | ||
WORKDIR /initial-content | ||
RUN wget "$GRAV_SKELETON_URL" -O theme.zip \ | ||
&& unzip theme.zip \ | ||
&& rm theme.zip | ||
&& rm theme.zip \ | ||
&& git clone https://github.com/getgrav/grav.git grav | ||
|
||
# Add and prepare the script to copy content if necessary | ||
COPY copy-theme.sh /copy-theme.sh | ||
RUN chmod +x /copy-theme.sh | ||
ENTRYPOINT ["/copy-theme.sh"] | ||
ENTRYPOINT ["/copy-theme.sh"] |
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