1.1.3 • Published 1 year ago

@ekstra-bladet/eb-cmp v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eb-cmp

Ekstra Bladet CMP packaged in a container for use as an external component.

How to update and get the changes deployed

  • First of all make the changes needed to this repository.
  • Wait until a message is delivered in Slack #release
  • In eb-infra/deploy/public/cmp/helm change either the appVersion i Chart.yaml if the release should go to production otherwith change the tag property in the test- or production-values.yaml file.
  • Commit the changes and wait until ArgoCD deployes the changes (up to 5 minutes wait)

How to include

Including the CMP requires a Varnish server with esi.test-ekstrabladet.services backend defined with a prefix mapping of /ext_component/ and ESI processing activated.

With those prerequisites in place the component is included with the following include directive:

<esi:include src="/ext_component/cmp/include.html"/>

Docker

Using the resulting docker image requires the environment variable

FULL_URL_TO_EB_CMP_JS

set to the URL where the eb-cmp.js file should be served from.

The common scenario where the container is used as an external component on ekstrabladet.dk and related sites using the relative path /ext_component/cmp/eb-cmp.js makes the JS file local to the site where the compoent is served as it will be proxied through the Varnish server.

Building the image locally can be done using

docker build -t eb-cmp .

And running it

docker run -it --rm -p 8080:80 -e FULL_URL_TO_EB_CMP_JS=http://localhost:8080/cmp/eb-cmp.js eb-cmp
1.1.3

1 year ago

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago