Compare commits

...

8 Commits
v2.0.1 ... main

3 changed files with 6 additions and 12 deletions

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

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

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