Skip to content

Commit

Permalink
Update varnish version
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Oct 21, 2024
1 parent b5ae294 commit f7d857d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
branches:
- master
tags:
- '*'

jobs:
build-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
context: shopinvader
file: shopinvader/Dockerfile
tags: |
ghcr.io/${{ github.repository }}:latest,
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:latest
cache-to: type=inline
push: true
19 changes: 1 addition & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
FROM ubuntu:bionic-20181018

USER root

RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y curl && \
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60lts/script.deb.sh | bash &&\
apt-get install -y varnish varnish-dev && \
apt-get clean

RUN mkdir /tmp/varnish && \
cd /tmp/varnish && \
curl https://download.varnish-software.com/varnish-modules/varnish-modules-0.15.0.tar.gz -o modules.tar.gz && \
tar zxvf modules.tar.gz && \
cd varnish-modules-0.15.0 && \
./configure && make && make install && \
rm -rf /tmp/varnish
FROM varnish:7.6.0

RUN curl -s https://raw.githubusercontent.com/camptocamp/docker-odoo-project/master/install/dockerize.sh | bash

Expand Down
2 changes: 1 addition & 1 deletion config/template.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Marker to tell the VCL compiler that this VCL has been adapted to the
# new 4.0 format.
vcl 4.0;
vcl 4.1;

import header;
import cookie;
Expand Down

0 comments on commit f7d857d

Please sign in to comment.