2017-09-23 08:44:27 +00:00
|
|
|
# static-misc
|
|
|
|
|
|
|
|
## Test locally
|
|
|
|
|
2022-01-31 12:58:26 +00:00
|
|
|
docker build -t static-web:1 .
|
2017-09-23 08:44:27 +00:00
|
|
|
git clone git@git.develooper.com:perl-static-misc.git git
|
|
|
|
|
2017-09-23 23:23:55 +00:00
|
|
|
docker run -p 8000:80 --name static-misc \
|
2017-09-23 08:44:27 +00:00
|
|
|
-v `pwd`/git:/git/static -v `pwd`/config:/web/config \
|
2022-01-31 12:58:26 +00:00
|
|
|
-ti --rm static-web:1
|
2017-09-23 08:44:27 +00:00
|
|
|
|
|
|
|
Test with
|
|
|
|
|
|
|
|
curl -H 'Host: i.perl.org' localhost:8000
|
|
|
|
|
|
|
|
To get a shell in the container run
|
|
|
|
|
|
|
|
docker exec -ti static-misc bash
|
|
|
|
|
|
|
|
And then run `curl -H 'Host: i.perl.org' localhost` there.
|
|
|
|
|
|
|
|
## Production image
|
|
|
|
|
2022-01-31 12:58:26 +00:00
|
|
|
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)
|
2017-09-23 08:44:27 +00:00
|
|
|
|