mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-29 21:16:19 +00:00
Compare commits
2 commits
6c0c2e89f7
...
5d37ca01e8
Author | SHA1 | Date | |
---|---|---|---|
|
5d37ca01e8 | ||
|
c523cea9be |
2 changed files with 27 additions and 0 deletions
26
.devcontainer/devcontainer.json
Normal file
26
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
|
||||||
|
{
|
||||||
|
"name": "Alpine",
|
||||||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/shyim/devcontainers-features/bun:0": {},
|
||||||
|
"ghcr.io/devcontainers/features/git-lfs:1": {}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
|
// "features": {},
|
||||||
|
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
// "forwardPorts": [],
|
||||||
|
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y zstd",
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
// "customizations": {},
|
||||||
|
|
||||||
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
|
// "remoteUser": "root"
|
||||||
|
}
|
|
@ -48,6 +48,7 @@ export async function parseWarc(path: string) {
|
||||||
const warc = Bun.spawn(["zstd", "-do", "/dev/stdout", path], {
|
const warc = Bun.spawn(["zstd", "-do", "/dev/stdout", path], {
|
||||||
stderr: "ignore",
|
stderr: "ignore",
|
||||||
}).stdout;
|
}).stdout;
|
||||||
|
// TODO: tirar error si falla zstd
|
||||||
|
|
||||||
const parser = new WARCParser(warc);
|
const parser = new WARCParser(warc);
|
||||||
for await (const record of parser) {
|
for await (const record of parser) {
|
||||||
|
|
Loading…
Reference in a new issue