-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-pdo-pgsql
- Loading branch information
Showing
11 changed files
with
48 additions
and
82 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 was deleted.
Oops, something went wrong.
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,22 +1,7 @@ | ||
.PHONY: default | ||
default: build run | ||
|
||
.PHONY: build | ||
build: | ||
docker build -t phpctl-${OS}-test -f ${OS}.Dockerfile . | ||
|
||
.PHONY: run | ||
run: | ||
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock phpctl-${OS}-test bash | ||
|
||
.PHONY: install | ||
install: | ||
wget -q https://phpctl.dev/phpctl-installer.sh && \ | ||
bash phpctl-installer.sh && rm phpctl-installer.sh | ||
@parallel --line-buffer ./build {} ::: alpine archlinux ubuntu | ||
|
||
.PHONY: test | ||
test: | ||
ls -lha /usr/local/bin | ||
phpctl doctor | ||
php --version | ||
composer --version | ||
@parallel --line-buffer ./test {} ::: alpine archlinux ubuntu |
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,4 +1,4 @@ | ||
FROM alpine | ||
RUN apk add bash docker git make openssl sudo | ||
WORKDIR /usr/local/src | ||
COPY Makefile . | ||
RUN apk add bash curl docker git make neofetch openssl sudo | ||
COPY docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM archlinux | ||
RUN pacman -Syu --noconfirm docker make wget sudo git | ||
WORKDIR /usr/local/src | ||
COPY Makefile . | ||
RUN pacman -Syu --noconfirm curl docker git make neofetch sudo | ||
COPY docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
echo -e "[$1] \033[0;32mBuilding...\033[0m" | ||
docker build -t "phpctl-$1-test" -f "$1.Dockerfile" . &> /dev/null | ||
echo -e "[$1] \033[0;32mDone!\033[0m" |
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,7 @@ | ||
#!/usr/bin/env bash | ||
neofetch | ||
/bin/bash -c "$(curl -fsSL https://phpctl.dev/install.sh)" | ||
echo "" | ||
notty phpctl doctor | ||
notty php --version | ||
notty composer --version |
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,3 @@ | ||
#!/usr/bin/env bash | ||
echo -e "[$1] \033[0;32mTesting...\033[0m" | ||
echo -e "$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock "phpctl-$1-test")" |
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,4 +1,4 @@ | ||
FROM ubuntu | ||
RUN apt update && apt install -y bash docker.io git make openssl sudo wget | ||
WORKDIR /usr/local/src | ||
COPY Makefile . | ||
RUN apt update && apt install -y bash curl docker.io git make neofetch openssl sudo | ||
COPY docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.sh"] |