Comments (3)
Hi @andrewggg1 and sorry for taking so long to address this.
Right now there is no "concept" of a registry, because every preset defines its own image which includes docker registry URL. Some images are already not hosted on docker.io
(like mssql).
As a quick workaround, before anybody gets to work on this issue, I can suggest writing a wrapper Preset for whatever presets you require in tests, and implementing Image
method to return your custom registry hosted image. It's very little code, and you will still enjoy all the new features of the wrapped presets if ever added.
As a more generic solution, I only can think of using some string manipulation magic that replaces docker.io
or any other registry host name by the provided URL from a new Options
function. It would be the users' job to verify that the provided registry actually hosts the requested image.
I'm out of capacity in the near future to work on this, but I am available to review code and release a new version if you or anybody else is willing to take on the generic solution part. Would you like to work on this?
from gnomock.
what should I do if I don`t want to use docker,but use the client itself? just skip start function?
from gnomock.
Hi @mingmingshiliyu, sorry, I don't understand the question. Which client do you want to use?
from gnomock.
Related Issues (20)
- It is safe NOT to call `gnomock.Stop()`? HOT 1
- Bug: gnomock-cleaner not work well in M1(arm64) HOT 4
- Bug: gnomockd in github action 'services:' & 'container:' requires preallocated exposed port range HOT 7
- Add a CI job that uses github service containers feature
- New preset: jaeger, tracing backend
- Bug: Healthcheck failed on running k3s preset example HOT 3
- Request: Custom the image of preset HOT 3
- Request: allow use of already previous test session Docker containers HOT 7
- New Option: Entrypoint HOT 1
- Bug: Nearly impossible to debug failing containers HOT 12
- Bug: Remote certificate is expired - need to skip TLS verification HOT 1
- Bug: verifying module: checksum mismatch in dependecy HOT 3
- Bug: postgres WithDatabase() causes failure on WithContainerReuse() HOT 1
- Request: Include Timestream to localstack.Service HOT 1
- Bug: `WithUseLocalImagesFirst()` doesn't work with local only images HOT 2
- Bug: Healthcheck not working for docker in docker. HOT 7
- Request: Update go-elasticsearch to 8.7.0
- Bug: Container is broken HOT 6
- Request: Enable easily running containers in cluster mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnomock.