Skip to content

Instantly share code, notes, and snippets.

@pborreli
Last active March 15, 2016 21:05
Show Gist options
  • Save pborreli/a6abea93dabeab532758 to your computer and use it in GitHub Desktop.
Save pborreli/a6abea93dabeab532758 to your computer and use it in GitHub Desktop.
Validate your Varnish VCL file using GitLab-CI
image: newsdev/varnish:4.1.0
test:
script:
- /usr/local/sbin/varnishd -C -f default1.vcl
gitlab-ci-multi-runner 1.0.4 (014aa8c)
Using Docker executor with image newsdev/varnish:4.1.0 ...
Pulling docker image newsdev/varnish:4.1.0 ...

$ /usr/local/sbin/varnishd -C -f default1.vcl
Error:
Message from VCC-compiler:
Could not load VMOD curl
	File name: /usr/local/lib/varnish/vmods/libvmod_curl.so
	dlerror:: /usr/local/lib/varnish/vmods/libvmod_curl.so: cannot open shared object file: No such file or directory
('input' Line 15 Pos 8)
import curl;
-------####-

Running VCC-compiler failed, exited with 2
VCL compilation failed

ERROR: Build failed with: exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment