Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

google-storage-testbench

Unofficial docker image for googleapi's storage-testbench. Based on the python:3.13-slim docker image.

Can be used to fake a local google storage service, useful for unit testing.

How to run

docker run -d -p 9000:9000 igiwa001/google-storage-testbench:latest

Usage with testcontainers

import { GenericContainer } from "testcontainers";
import { Storage } from "@google-cloud/storage";

const container = await new GenericContainer("igiwa001/google-storage-testbench:latest")
  .withExposedPorts(9000)
  .start();

const storage = new Storage({
  projectId: "test-project",
  apiEndpoint: `http://${container.getHost()}:${container.getMappedPort(9000)}`,
});

About

Unofficial docker image for googleapi's storage-testbench.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages