Compare commits

...

5 Commits

Author SHA1 Message Date
Paolo Asperti 20f7e33309
keep only latest docker release
continuous-integration/drone/tag Build is passing Details
2022-03-10 14:43:10 +01:00
Paolo Asperti 0d107f80e1
update drone
continuous-integration/drone/tag Build is passing Details
2021-12-12 22:08:49 +01:00
Paolo Asperti 4e305387fe
update OS 2021-12-12 22:08:40 +01:00
Paolo Asperti f51101c505 fix visible_hostname
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-12-14 10:16:06 +01:00
Paolo Asperti 50fc5bb4e9
Updated Alpine
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-09-23 08:32:42 +02:00
4 changed files with 19 additions and 57 deletions

View File

@ -1,77 +1,37 @@
kind: pipeline
type: docker
name: default
steps:
- name: build-alpine
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-alpine
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/angry-squid
tags:
- latest
- alpine-latest
when:
event:
exclude:
- tag
- name: build-debian
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-debian
daemon_off: false
dry_run: true
repo: docker.asperti.com/paspo/angry-squid
tags:
- debian-latest
when:
event:
exclude:
- tag
- name: build_and_publish-alpine
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-alpine
auto_tag: true
auto_tag_suffix: alpine
force_tag: true
daemon_off: false
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile-alpine
registry: docker.asperti.com
repo: docker.asperti.com/paspo/angry-squid
tags:
- latest
- alpine-latest
username:
from_secret: docker_username
when:
event:
- tag
force_tag: true
- name: build_and_publish-debian
image: plugins/docker:linux-amd64
pull: always
settings:
dockerfile: Dockerfile-debian
auto_tag: true
auto_tag_suffix: debian
force_tag: true
daemon_off: false
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile-debian
registry: docker.asperti.com
repo: docker.asperti.com/paspo/angry-squid
tags:
- debian-latest
username:
from_secret: docker_username
when:
event:
- tag
force_tag: true
trigger:
event:
- tag

View File

@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.15
RUN apk -U upgrade && \
apk add squid perl && \
@ -13,4 +13,4 @@ COPY storeid/* /app/storeid/
EXPOSE 3128
EXPOSE 3129
ENTRYPOINT ["/app/start.sh"]
ENTRYPOINT ["/app/start.sh"]

View File

@ -1,4 +1,4 @@
FROM debian:10
FROM debian:11
RUN apt-get update && \
apt-get -y upgrade && \
@ -14,4 +14,4 @@ COPY storeid/* /app/storeid/
EXPOSE 3128
EXPOSE 3129
ENTRYPOINT ["/app/start.sh"]
ENTRYPOINT ["/app/start.sh"]

View File

@ -3,6 +3,7 @@
SQUID_CACHE_DIR=${SQUID_CACHE_DIR:-/var/spool/squid}
SQUID_COREDUMP_DIR=${SQUID_COREDUMP_DIR:-/var/cache/squid}
SQUID_CACHE_SIZE_MB=${SQUID_CACHE_SIZE_MB:-10240}
SQUID_HOSTNAME=${SQUID_HOSTNAME:-angrysquid.local}
PIDFILE=/var/run/squid.pid
@ -20,6 +21,7 @@ fi
cat <<EOF >/etc/squid/conf.d/common.conf
cache_dir aufs ${SQUID_CACHE_DIR} ${SQUID_CACHE_SIZE_MB} 16 256
coredump_dir ${SQUID_COREDUMP_DIR}
visible_hostname ${SQUID_HOSTNAME}
EOF
if [ ! -d "${SQUID_CACHE_DIR}/00" ]; then