privatebin: maj pour evolution
This commit is contained in:
parent
ac1bb8f6f9
commit
0acc049aa7
|
@ -13,6 +13,7 @@ if ! podman image exists ${privatebin_image}:${privatebin_version}; then
|
||||||
if git clone -b ${privatebin_version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine ${buildfolder} ; then
|
if git clone -b ${privatebin_version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine ${buildfolder} ; then
|
||||||
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile &&
|
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile &&
|
||||||
TMPDIR=${HOME} podman image build \
|
TMPDIR=${HOME} podman image build \
|
||||||
|
--label "org.opencontainers.image.revision=$(cd ${buildfolder} ; git rev-parse HEAD)" \
|
||||||
-t "${privatebin_image}":"${privatebin_version}" \
|
-t "${privatebin_image}":"${privatebin_version}" \
|
||||||
${buildfolder} || retval=false
|
${buildfolder} || retval=false
|
||||||
podman image prune -a -f --filter dangling=true
|
podman image prune -a -f --filter dangling=true
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
## vars
|
## vars
|
||||||
privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine"
|
privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine"
|
||||||
privatebin_version='1.7.5-alpine3.20.3'
|
privatebin_version='1.7.5-alpine3.21'
|
||||||
## default vars : override with ENV var
|
## default vars : override with ENV var
|
||||||
listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}"
|
listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}"
|
||||||
listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}"
|
listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}"
|
||||||
|
|
Loading…
Reference in a new issue