refined build process
This commit is contained in:
parent
89e96f6a9d
commit
6e9c884375
6 changed files with 17 additions and 4 deletions
5
README.md
Normal file
5
README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Only build for arm right now, based on php-apache images
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d --name container_name -v ./www:/var/www/html -v ./php:/usr/local/etc/php/conf.d git.paucapo.com/server/php-apache:8.2
|
||||||
|
```
|
||||||
16
build.sh
16
build.sh
|
|
@ -1,9 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
docker login "http://git.paucapo.com/"
|
docker login "http://git.paucapo.com/"
|
||||||
|
|
||||||
for image in php-*; do
|
for dockerfile in $SCRIPT_DIR/*:*; do
|
||||||
echo "Building $image"
|
package=`basename "$dockerfile"`
|
||||||
docker build -f "./$image" -t "git.paucapo.com/server/docker:$image" .
|
echo "Building $package"
|
||||||
docker push "git.paucapo.com/server/docker:$image"
|
docker build \
|
||||||
|
-f "$dockerfile" \
|
||||||
|
-t "git.paucapo.com/server/$package" \
|
||||||
|
"$SCRIPT_DIR"
|
||||||
|
docker push "git.paucapo.com/server/$package"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sudo docker image prune -a --force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue