Compare commits

..

No commits in common. "main" and "501b99ee36ee7ef618b520e01f241ff3c142759c" have entirely different histories.

3 changed files with 12 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM harbor.ntppool.org/perlorg/base-os:3.20.2
FROM harbor.ntppool.org/perlorg/base-os:3.13.5-1
ENV BUILD_VERSION 1
USER root
WORKDIR /web

View File

@ -2,12 +2,12 @@
## Test locally
docker build -t static-web:1 .
docker build -t quay.io/perl/static-web:v1.2.0 .
git clone git@git.develooper.com:perl-static-misc.git git
docker run -p 8000:80 --name static-misc \
-v `pwd`/git:/git/static -v `pwd`/config:/web/config \
-ti --rm static-web:1
-ti --rm quay.io/perl/static-web:v1.2.0
Test with
@ -21,6 +21,12 @@ And then run `curl -H 'Host: i.perl.org' localhost` there.
## Production image
The "production image" is at harbor.ntppool.org/library/static-web:latest
(or rather tagged with the most recent version, for example 2.2.0)
The "production image" is in https://quay.io/perl/static-web - the image
is "manually" built and pushed because I didn't want to give quay access
to all of this git repository.
REV=v1.0
IMAGE=quay.io/perl/static-web:$REV
docker build -t $IMAGE . && \
docker push $IMAGE

View File

@ -4,7 +4,7 @@ set -ex
if [ ! -z "$READY_FILE" ]; then
while [ ! -e $READY_FILE ]; do
echo waiting for $READY_FILE
sleep 5
sleep 10
done
fi