Skip to content

20231216

Compare
Choose a tag to compare
@ku1ik ku1ik released this 16 Dec 22:27
· 269 commits to develop since this release

Notable changes

Breaking changes

  • the data (uploads) directory inside the container changed - see below

Upgrading

Bump the container image version number in docker-compose.yml:

 services:
   asciinema:
-    image: ghcr.io/asciinema/asciinema-server:20231120
+    image: ghcr.io/asciinema/asciinema-server:20231216
     # ...

Next, update the volume mapping:

In previous versions, when local file store was used (default), the uploads were stored in /opt/app/uploads. Starting with this release, all persistent data is written to /var/opt/asciinema. Uploads in particular are stored in /var/opt/asciinema/uploads.

Right now, asciinema server writes to /var/opt/asciinema/uploads only, but in the future we may use other directories in /var/opt/asciinema/ to store other files.

The quick fix, is to make the following change to the volume mapping section:

 services:
   asciinema:
     volumes:
-      - ./path/to/asciinema/uploads:/opt/app/uploads
+      - ./path/to/asciinema/uploads:/var/opt/asciinema/uploads
     # ...

A more future proof solution is to change the mapping like this:

 services:
   asciinema:
     volumes:
-      - ./path/to/asciinema/uploads:/opt/app/uploads
+      - ./path/to/asciinema:/var/opt/asciinema
     # ...

Note the change also on the host side - we now map the parent directory of the uploads directory, which will let the server create other sub-directories next to uploads.

Finally, execute docker compose up -d.