-
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.
- Loading branch information
1 parent
17e6fa0
commit 8838d4d
Showing
3 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM alpine | ||
RUN apk add bash docker git make openssl sudo | ||
WORKDIR /usr/local/src | ||
COPY Makefile . |
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,21 @@ | ||
.PHONY: default | ||
default: build run | ||
|
||
.PHONY: build | ||
build: | ||
docker build -t phpctl-alpine-test . | ||
|
||
.PHONY: run | ||
run: | ||
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock phpctl-alpine-test sh | ||
|
||
.PHONY: install | ||
install: | ||
sh <(wget -qO- https://raw.githubusercontent.com/opencodeco/phpctl/main/installer.sh) | ||
|
||
.PHONY: test | ||
test: | ||
ls -lha /usr/local/bin | ||
phpctl doctor | ||
php --version | ||
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,5 @@ | ||
This tests the `phpctl` installation in a blank Alpine distribution. | ||
|
||
Run `make` then inside the container run `make install`. | ||
|
||
To check the installation, run `make test`. |