Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ _data/modules.json
.vscode/*
.idea/*
tmp/*
static/debug
9 changes: 9 additions & 0 deletions content/try-valkey/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "Try Valkey"
template = "valkey-try-me.html"
[extra]
state_file = "https://download.valkey.io/try-me-valkey/8.1.0/states/state.bin.gz"
filesystem_base_url = "https://download.valkey.io/try-me-valkey/8.1.0/fs/alpine-rootfs-flat"
filesystem_base_fs = "https://download.valkey.io/try-me-valkey/8.1.0/fs/alpine-fs.json"
+++

5 changes: 0 additions & 5 deletions content/try-valkey/index.md

This file was deleted.

11 changes: 11 additions & 0 deletions content/try-valkey/pyconafrica-workshop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Try Valkey for PyCon Africa 2025"
template = "valkey-try-me.html"
[extra]
state_file = "https://download.valkey.io/try-me-valkey/pyconafrica/states/state.bin.gz"
filesystem_base_url = "https://download.valkey.io/try-me-valkey/pyconafrica/fs/alpine-rootfs-flat"
filesystem_base_fs = "https://download.valkey.io/try-me-valkey/pyconafrica/fs/alpine-fs.json"
+++


This is an in-browser Valkey server, `valkey-cli`, and Python,that runs directly within your browser using a [V86](https://github.com/copy/v86) emulator, requiring no external installations. You will use this to complete the workshop.
19 changes: 16 additions & 3 deletions templates/valkey-try-me.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
<link rel="stylesheet" href="https://download.valkey.io/try-me-valkey/vos/valkey-try-me.css" />

<!-- Body -->
{% if page %}
{{ page.content | markdown | safe }}
{% else %}
<title>Try Valkey</title>
<p>This is an in-browser Valkey server and CLI that runs directly within your browser using a <a href="https://github.com/copy/v86">V86</a> emulator, requiring no external installations. </p>
<p>Try it out below:</p>
{% endif %}
<div id="terminalWrapper" class="container" style="display: none;">
<div id="terminal-container"></div>
</div>
Expand All @@ -30,7 +34,11 @@

<script>
"use strict";
const FILE_URL = "https://download.valkey.io/try-me-valkey/8.1.0/states/state.bin.gz"; // Path to the .gz file
{% if page %}
const FILE_URL = "{{ page.extra.state_file | safe }}"; // Path to the .gz file
{% else %}
const FILE_URL = "{{ section.extra.state_file | safe }}"; // Path to the .gz file
{% endif %}
const CACHE_KEY = "valkey_binary_cache";
const LAST_MODIFIED_KEY = "valkey_last_modified";
let emulator;
Expand Down Expand Up @@ -138,8 +146,13 @@
memory_size: 512 * 1024 * 1024,
bios: { url: "https://download.valkey.io/try-me-valkey/vos/v86/bios/seabios.bin" },
filesystem: {
baseurl: "https://download.valkey.io/try-me-valkey/8.1.0/fs/alpine-rootfs-flat",
basefs: "https://download.valkey.io/try-me-valkey/8.1.0/fs/alpine-fs.json",
{% if page %}
baseurl: "{{ page.extra.filesystem_base_url | safe }}",
basefs: "{{ page.extra.filesystem_base_fs | safe }}",
{% else %}
baseurl: "{{ section.extra.filesystem_base_url | safe }}",
basefs: "{{ section.extra.filesystem_base_fs | safe }}",
{% endif %}
},
autostart: true,
bzimage_initrd_from_filesystem: true,
Expand Down