Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline / Private Environment #1572

Closed
steve-gray opened this issue Apr 14, 2016 · 1 comment
Closed

Offline / Private Environment #1572

steve-gray opened this issue Apr 14, 2016 · 1 comment

Comments

@steve-gray
Copy link

Hello,

Is it possible to add a prefix variable that can be appended to all container names, allowing us to run a fully offline copy of drone using a mirrored set of containers.

Essentially we're using Artifactory, and we want to have a non-internet connected test environment - and plugins for the various elements would be mirrored to artifactory - requiring a prefix to be specified for the FQDN on the container pulls.

Right now, no internet - no love - unless I've missed something dramatic here.

-steve

@bradrydzewski
Copy link

drone will always fall back to the local Docker cache (on the host machine) and will happily if the required images are in the local cache. If you want to change to use an internal registry you will need to publish images or plugins to your registry and then reference them in the yaml using the full name:

clone:
  image: foo.com/git

build:
  image: foo.com/golang

deploy:
  slack:
    image: foo.com/slack

Then you will need to include your plugins in the white list. You can do so by adding the following configuration to your drone server:

PLUGIN_FILTER=plugins/* foo.com/*

Alternatively you can manually download the images from artifactory to your host machine and then re-tag them so they work with drone out of the box. You could probably script this and have a cron script regularly download and update:

docker pull foo.com/slack
docker tag $(docker images -q foo.com/slack) plugins/drone-slack

For all future questions, please use our gitter room to reserve the issue tracker for bug reports. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants