Skip to content

Commit

Permalink
Add phive
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed May 30, 2024
1 parent bbaa020 commit 253e7ed
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
11 changes: 10 additions & 1 deletion php/alpine/8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USER root

# cmd tools
RUN apk update && apk upgrade && apk add --update alpine-sdk && \
apk add --no-cache make cmake
apk add --no-cache make cmake gpg gpg-agent

# NPM
RUN apk add --no-cache nodejs npm \
Expand Down Expand Up @@ -62,6 +62,15 @@ COPY php.ini /etc/php81/conf.d/custom.ini
# Get Composer
COPY --from=composer /usr/bin/composer /usr/local/bin/composer

# Get phive
RUN wget -O phive.phar "https://phar.io/releases/phive.phar" && \
wget -O phive.phar.asc "https://phar.io/releases/phive.phar.asc" && \
gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x6AF725270AB81E04D79442549D8A98B29B2D5D79 && \
gpg --verify phive.phar.asc phive.phar && \
rm phive.phar.asc && \
chmod +x phive.phar && \
mv phive.phar /usr/local/bin/phive

USER jenkins

ENTRYPOINT ["jenkins-slave"]
11 changes: 10 additions & 1 deletion php/alpine/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USER root

# cmd tools
RUN apk update && apk upgrade && apk add --update alpine-sdk && \
apk add --no-cache make cmake
apk add --no-cache make cmake gpg gpg-agent

# NPM
RUN apk add --no-cache nodejs npm \
Expand Down Expand Up @@ -62,6 +62,15 @@ COPY php.ini /etc/php82/conf.d/custom.ini
# Get Composer
COPY --from=composer /usr/bin/composer /usr/local/bin/composer

# Get phive
RUN wget -O phive.phar "https://phar.io/releases/phive.phar" && \
wget -O phive.phar.asc "https://phar.io/releases/phive.phar.asc" && \
gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x6AF725270AB81E04D79442549D8A98B29B2D5D79 && \
gpg --verify phive.phar.asc phive.phar && \
rm phive.phar.asc && \
chmod +x phive.phar && \
mv phive.phar /usr/local/bin/phive

USER jenkins

ENTRYPOINT ["jenkins-slave"]
11 changes: 10 additions & 1 deletion php/alpine/8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USER root

# cmd tools
RUN apk update && apk upgrade && apk add --update alpine-sdk && \
apk add --no-cache make cmake
apk add --no-cache make cmake gpg gpg-agent

# NPM
RUN apk add --no-cache nodejs npm \
Expand Down Expand Up @@ -62,6 +62,15 @@ COPY php.ini /etc/php83/conf.d/custom.ini
# Get Composer
COPY --from=composer /usr/bin/composer /usr/local/bin/composer

# Get phive
RUN wget -O phive.phar "https://phar.io/releases/phive.phar" && \
wget -O phive.phar.asc "https://phar.io/releases/phive.phar.asc" && \
gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x6AF725270AB81E04D79442549D8A98B29B2D5D79 && \
gpg --verify phive.phar.asc phive.phar && \
rm phive.phar.asc && \
chmod +x phive.phar && \
mv phive.phar /usr/local/bin/phive

USER jenkins

ENTRYPOINT ["jenkins-slave"]

0 comments on commit 253e7ed

Please sign in to comment.